Org Chart Editor New Node focus

Hi Walter

When org chart editor new node added. Is it possible to do below

  1. Focus to be moved to New Node
  2. New Node will be “clicked” and the Inspector updated accordinly

Could you please explain how to achieve above

In whatever function you are using to add the new node, you can use the Diagram.scrollToRect and Diagram.select functions to scroll to and select the newly created node. For scrollToRect, you will want to pass the new node’s actualBounds.

An example of this is in the addNodeAndLink function of the State Chart sample.