cytoscape.js

is there a cytoscape.js property change listener?


For Cytoscape Java version there is an official PropertyUpdatedListener

For cytoscape.js I'm not able to find that in the docs, neither an official plugin.
Am I wrong?

Is there a plugin out there, or has anyone done some implementation to enable this functionality?

Thanks a lot!


Solution

  • Based on the document cytoscaoe.js#events, in the topic Collection events:

     
    You can listen to these events for collections
    * position : when an element changes position
    * data : when an element’s data is changed
    * style : when an element’s style is changed
    

    A collection contains a set of nodes and edges. Calling a function applies the function to all elements in the collection. When a collection is bound to an event, all elements in the collection are set to listen to that event.