Pergunta

I've been using the JGraph library and I can't seem to find out what event fires when the root node of the view changes. For example when you enter a group A, A is now the root of the view and when you perform the home action the view root is the defaultParent of the graph.

I found the mxEvent.ROOT event, but in the JavaScript docs (not the Javadocs) that it fires only on changes to the root on the model.

What event do I need to subscribe to in order to perform an action whenever the root of the view changes?

Foi útil?

Solução

I found out that the mxEvent.UNDO action found in the JS docs here fires upon the setCurrentRoot method being called. I wish this was clearer in the Javadocs.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top