문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top