angular-bootstrap-nav-tree icon indicating copy to clipboard operation
angular-bootstrap-nav-tree copied to clipboard

Is it possible to have custom label name?

Open deleugpn opened this issue 9 years ago • 0 comments

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".

deleugpn avatar Jul 28 '16 18:07 deleugpn