mouse events on joints and diagram elements

323 views
Skip to first unread message

Marcin Malinowski

unread,
May 21, 2012, 8:14:18 AM5/21/12
to JointJS
is there any simple way of attaching a click event handlers to joint
connections and elements because i cnt seem to find a simple way?
what is important to access the joint object inside the event without
storing it externaly.


what i want to achieve is that after i click an element or connection
i want it to be deleted from a diagram.

jeanj...@gmail.com

unread,
Jan 22, 2013, 6:30:39 AM1/22/13
to joi...@googlegroups.com
I use :

$("rect").on("click", function(){
                alert('Rect     selected');
});
$("path").on("click", function(){
                alert('Path     selected');
});
Reply all
Reply to author
Forward
0 new messages