Need select all option for checkbox list

Hello Webix team,

https://snippet.webix.com/l6peqb2l

I want select all option for checkbox list, how can I do that.

Please reply…

Hey @leod1481, if I inderstood you correctly, this should suffice: https://snippet.webix.com/1ny0mdqj. Since you are using a custom checkbox that checks its value based on the markCheckbox property, we can set this property on init for every item using scheme;

Or, if you just need an API to check all checkboxes, you can use

 list.data.each(obj => list.updateItem(obj.id, { markCheckbox:1 }));

https://snippet.webix.com/hr4jcb04