How to add an onclick event to a joint.js element?
- by ahalbert
I have a joint.js element in a DAG, and would like to be able to trigger an event by clicking on it.
I could use $(selector).click(...) to do it, but I was wondering if there was a joint.js specific way of handling it,
since that would probobly be better. One event I decided was a candidate for onclick was 'batch:stop'
My code:
var variable = …