eu81273 / angular.treeview

AngularJS based Treeview (no jQuery)
MIT License
405 stars 223 forks source link

So that you can add custom css classes #20

Closed joshterrill closed 3 months ago

joshterrill commented 10 years ago

This allows you to add custom css classes for the different states that the treeview is in and having them selected by putting something like "classCollapsed" : "cssClass" in the json.

joshterrill commented 10 years ago

The reason I added this is because you have a notion of Parent and Child, with icons for Parent (open), Parent (closed), and Child. In the implementation I have, I have a notion of Parent, Sub-Parent, Child... so I needed different icons for all of those. Now I can assign a custom css class for every state each individual item in the tree is in.