[Question] Toggle siblings resp not working ?
bigopon opened this issue · comments
Hi, I tried to pass in option: toggleSiblingsResp
but it doesn't seem to be working.
orgchart = new OrgChart({
'chartContainer': '#chart-container',
'data' : datascource,
nodeContent: 'title',
toggleSiblingsResp: false
});
Another question is how can I disable toggle parent ? I want to limit ability to hide parent of a child node.
Hi @bigopon, if you wanna enable the feature -- toggle the sibling nodes(left or right) respectively, you just need to set this option to true
As for the second question, you just need a little css trick to hide top arrow of every child node
Hi, can you elaborate ? I couldn't find it in the source code.
When users click the top arrow of every child node, the patent node will be collapsed/expanded, so you just need to control the visibility of top arrow, then you can limit the ability to hide parent node.
'toggleSiblingsResp': false
It doesn't work still.