Open spearsear opened 5 years ago
Hi,
I want to make the root node collapsed. Here is what my configuration:
{"chart":{"container":"#ngpTree","animateOnInit":true,"node":{"collapsable":true},"animation":{"nodeAnimation":"easeOutBounce","nodeSpeed":700,"connectorsAnimation":"bounce","connectorsSpeed":700}},"nodeStructure":{"collapsed":true,"innerHTML":"\n
You see in nodeStructure of root node, I set collapsed to true as what I did for each child node:
"nodeStructure":{"collapsed":true,"innerHTML":....
However the root node still is not collapsed, the children nodes are collapsed as I wanted.
Is this the way I make the root node collapsed? If not, how?
Thanks,
Stephen
Hi,
I want to make the root node collapsed. Here is what my configuration:
{"chart":{"container":"#ngpTree","animateOnInit":true,"node":{"collapsable":true},"animation":{"nodeAnimation":"easeOutBounce","nodeSpeed":700,"connectorsAnimation":"bounce","connectorsSpeed":700}},"nodeStructure":{"collapsed":true,"innerHTML":"\n
You see in nodeStructure of root node, I set collapsed to true as what I did for each child node:
"nodeStructure":{"collapsed":true,"innerHTML":....
However the root node still is not collapsed, the children nodes are collapsed as I wanted.
Is this the way I make the root node collapsed? If not, how?
Thanks,
Stephen