Open deleugpn opened 8 years ago
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?
label
children
I tried setting <abn-tree ... tree-label="name">, but no success.
<abn-tree ... tree-label="name">
Example of data:
[{ "name": "John" }, { "name": "Kelly", "emails": [{ "email": "kelly@gmail.com" }, { "email": "kelly@live.com" }] }]
John would have no expansion because it have no "children" (which is labeled as email here). Kelly would expand to "emails".
Suppose I have a ready-to-go resource of data, but I would need it to have a different attribute for
label
and also forchildren
. Is this possible?I tried setting
<abn-tree ... tree-label="name">
, but no success.Example of data:
John would have no expansion because it have no "children" (which is labeled as email here). Kelly would expand to "emails".