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
You can also use Backbone itself to attach specific events to specific models. JointJS is just Backbone under the hood.
const newElement = new jointjs.shapes.devs.Model({....});
graph.addCell(newElement);
newElement
.findView(paper)
.$el.find('.Settings') // this is nested in the model / cell
.click(() => {
// do something
});