@neovici/cosmoz-treenode-navigator
Version:
A Pion component that lets you navigate and search through hierarchically structured data-nodes and select one of them.
36 lines (29 loc) • 1.05 kB
Markdown
# cosmoz-treenode-navigator
[](https://github.com/Neovici/cosmoz-treenode-navigator/actions?workflow=Github+CI)
[](https://github.com/semantic-release/semantic-release)
cosmoz-treenode-navigator is a PionJS-based component that lets you navigate and search through hierarchically structured data-nodes and select one of them.
It needs an object structure which looks, for example, like this in JSON:
```json
{
"1": {
"name": "Root",
"children": {
"7": {
"name": "child seven",
"children": {}
},
"8": {
"name": "child eight",
"children": {
"9": {
"name": "child nine",
"children": {}
}
}
}
}
}
}
```
The property names "name" and "children" are configurable in the component through the setting of "childProperty" and "comparisonProperty".
### Backwards compatibility added