Search code examples
javascriptjsplumb

jsPlumb: iterate on all connections and list from to in console


As per title I would like to "read" all connections and list them in the console. May you help as I am quite rookie on the API? Thank You


Solution

  • There is a method provided by the API that allow you get all connections. You have to use getAllConnections() on your jsPlumb instance. Check official API documentation for more informations.

    UPDATE : jsFiddle demo (see console logs)