I would like to pass a field node.collapsed to load a specific node with its children collapsed. This way, for nodes with a ton of children, we can save some screen space. It looks like v-bind:collapsed="node.data._collapsed" and onClickNode() is responsible for setting node.data._collapsed and node.data.children to null. I'm thinking that I could initialize node.data._collapsed and node.data.children for nodes that I want collapsed to begin with. My question is, is there a function where it would make sense to add it?
I would like to pass a field
node.collapsed
to load a specific node with its children collapsed. This way, for nodes with a ton of children, we can save some screen space. It looks likev-bind:collapsed="node.data._collapsed"
andonClickNode()
is responsible for settingnode.data._collapsed
andnode.data.children
tonull
. I'm thinking that I could initializenode.data._collapsed
andnode.data.children
for nodes that I want collapsed to begin with. My question is, is there a function where it would make sense to add it?