md-data-table icon indicating copy to clipboard operation
md-data-table copied to clipboard

Init data-table with marked checkboxes

Open lhew opened this issue 9 years ago • 2 comments

Hi all,

I'm having trouble initializing the component with marked checkboxes. I couldn't find this kind of option at the documentation. Can anyone help me?

Regards.

lhew avatar Nov 30 '16 21:11 lhew

Well, you can easily do that. When you loaded the items, just init selected property with items. self.$scope.items= reponseItems; self.$scope.selected.push(self.$scope.items[0]); And first item in the table will be selected. Also, don't forget to set md-select-id and md-select attributes.

ielektronick avatar Apr 03 '17 06:04 ielektronick

@ielektronick you give me a exemple?

JorgeSegtowich avatar Jul 26 '18 14:07 JorgeSegtowich