lineClick

fires on clicking a connector line

void lineClick(string|number id,Event e){ ... };

Parameters

idstring|numberthe id of a connector
eEventa native event object

Example

diagram.events.on("lineClick", function(id, events) {
    console.log(id);
}); 
 
// For diagram editor
diagram.events.on("lineClick", function(id, events) {
    console.log(id);
});

Related samples

See also
Change log

Added in v3.0

Back to top