eu81273 / angular.treeview

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

How do I add node image ? #49

Open koushikdutta opened 8 years ago

koushikdutta commented 8 years ago

In my project, the node images are vary depend on the node value. If the child element has pdf files then the main node folder icon should be a pdf. Now I can change it via css but how do i make dynamic ?

ghost commented 8 years ago

As of now only three states are provided for a node (expanded, collapsed, normal). I think you might need to modify the tree template and css accordingly

olli1337 commented 7 years ago

You could just add -element to your ng-repeat and ng-source for the image. Edit the original files if the folder image bugs you out.