CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

Add hasChildren option to be an expression #857

Closed martijnhiemstra closed 4 years ago

martijnhiemstra commented 4 years ago

It would be really nice you can indicate in the options of the tree that the nodes have children or not based on an expression for example:

A node has the field childrenCount. Then I should be able to put in the options: hasChildren: 'childrenCount > 0'

martijnhiemstra commented 4 years ago

I just found out that if you use childrenCount then hasChildren isnt used so ignore this request.