angular-bootstrap-nav-tree
angular-bootstrap-nav-tree copied to clipboard
Is it possible to have custom label name?
Suppose I have a ready-to-go resource of data, but I would need it to have a different attribute for label and also for children. Is this possible?
I tried setting <abn-tree ... tree-label="name">, but no success.
Example of data:
[{
"name": "John"
}, {
"name": "Kelly",
"emails": [{
"email": "[email protected]"
}, {
"email": "[email protected]"
}]
}]
John would have no expansion because it have no "children" (which is labeled as email here). Kelly would expand to "emails".