Can a "show more" option/link be implemented in jsTree
? I am looking to display only a portion of the child elements with an option to expand and show all. Despite searching online, I have not been able to find a solution. Any assistance or suggestions would be greatly appreciated.
For example, let's consider that parent-1 has 10 child nodes and the Main Root consists of 5 parent nodes.
Main Parent
- Parent - 1
- child-1
- child-2
- child-3
show 7 more parent-1 elements //LINK
- Parent - 2
- child-1
- child-2
- Parent - 3
- child-1
- child-2
show 2 more Main Parent elements //LINK
The desired outcome is illustrated in the following image:
https://i.sstatic.net/DUSWC.png
Is it feasible to achieve this? Are there existing plugins that facilitate this functionality within jsTree
? Alternatively, are there other tree visualization libraries that offer support for such features?