wix-incubator / angular-tree-control

Angular JS Tree
http://wix.github.io/angular-tree-control
MIT License
707 stars 276 forks source link

Add the ability to define a branch class via a function. #294

Closed ashclarke closed 6 years ago

ashclarke commented 6 years ago

Accidental PR - Delete if you wish.

yoavaa commented 6 years ago

hay @ashclarke

can you please add tests and docs as well?

ashclarke commented 6 years ago

I've submitted another PR (sorry), which contains the appropriate changes.

iBranch was not the correct approach, as the other i classes target the <i> element, which I hadn't noticed.

Instead, I have updated the li class injection and rolled it all into headClass.

Feel free to remove this, if possible.