Skip to content
Discussion options

You must be logged in to vote

You can see the graph events here:
https://resources.jointjs.com/docs/jointjs/v3.6/joint.html#dia.Graph.events

// triggered when a new cell is added to the graph
graph.on('add', function(cell) { 
     console.log('New cell with id ' + cell.id + ' added to the graph.'); 
});

// generic event triggered for any change in the graph
graph.on('change', function(cell) { 
     console.log('Cell with id ' + cell.id + ' was changed.'); 
});

Or you could be more specific and listen to a change on a Link or Element:
https://resources.jointjs.com/docs/jointjs/v3.6/joint.html#dia.Element.events
https://resources.jointjs.com/docs/jointjs/v3.6/joint.html#dia.Link.events


If using JointJS+, you can use the

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jamesgeorgewilliams
Comment options

@pandika-csgi
Comment options

@kumilingus
Comment options

@pandika-csgi
Comment options

@kumilingus
Comment options

Answer selected by pandika-csgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants