OrgChart.js icon indicating copy to clipboard operation
OrgChart.js copied to clipboard

[Question] Toggle siblings resp not working ?

Open bigopon opened this issue 9 years ago • 6 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.

bigopon avatar Nov 26 '16 08:11 bigopon

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

dabeng avatar Nov 26 '16 13:11 dabeng

As for the second question, you just need a little css trick to hide top arrow of every child node

dabeng avatar Nov 26 '16 13:11 dabeng

Hi, can you elaborate ? I couldn't find it in the source code.

bigopon avatar Nov 26 '16 14:11 bigopon

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.

dabeng avatar Nov 28 '16 05:11 dabeng

@dabeng I'm running into a similar issue as @bigopon. When I set

'toggleSiblingsResp': false

the left/right toggle arrows still show on hover, and function as if they were set to true

pcate-fls avatar Dec 20 '17 15:12 pcate-fls

'toggleSiblingsResp': false

It doesn't work still.

talha2k avatar Nov 28 '21 07:11 talha2k