Can any one direct me for angular js tree directive with check boxes. I have come across few but none of them are fully functional with check boxes.Even the angular ui tree, http://ngmodules.org/modules/angular-ui-tree, I don't find samples with check boxes.
2 Answers
I just wrote a directive on this, with which you could have as many levels of checkboxes as you like. Basically it checks recursively after click events, and emit/broadcast them accordingly. Check out the repo, and the live demo.
2 Comments
smart987
Thanks Luxiyalu for the nice directive. If I have come across any issues will update you on Github.
Ahmed Mahmoud
Amazing :) just perfect
As far as I can tell, angular-ui-tree allows you to edit the node template so you can place a checkbox on each node and bind it to a property of the node.
2 Comments
smart987
Yes Boluc, the method you mentioned works. Let me try and post to forum if I stuck up somewhere. Meanwhile, instead I reinventing the wheel, if some body has any reference code to achieve this please direct me. Thanks.
smart987
Finally 80% is completed. Categories and subcategories are not appearing and in the json, even if checked : true, tick mark is not appearing in the check box. please see my plunker at plnkr.co/edit/TvzW7IVEp0eCnftigkey?p=preview. my code is in groups.js. Can any one help me to fix the code, please?