Category / Section
How to get child nodes for particular parent in TreeView?
1 min read
To get all the loaded child nodes with nested child, use the following code snippet.
[TS]
var childNodes = parentElement.querySelectorAll("li.e-list-item")
To get loaded child nodes for particular parents with particular levels, use the following code snippet.
[TS]
var childNodes = parentElement.querySelectorAll("li.e-list-item.e-level-2");
Sample link: https://stackblitz.com/edit/a9rtyv-a3rr2c?file=index.html