leovo2708 / ngx-treeview

An Angular treeview component with checkbox
MIT License
362 stars 337 forks source link

Unable to preset tree structure checkbox? #89

Open AmolBorse opened 6 years ago

AmolBorse commented 6 years ago

I have the list of previously selected data. so how can I set the checkbox in the tree? My category items format as follows - const category = new TreeviewItem({ text: item.data.value, value: item.data.value, collapsed: true, checked: false, children: [{ text: item.data.value, value: {}, checked: false, disabled: true}, { text: d.data.value, value: { 'categoryType': d.data.categoryType, 'categoryName': d.data.categoryName }, checked: false }] });

arunaxxl commented 5 years ago

This issue fixed