fires on clicking an item

void itemClick(string|number id,MouseEvent event){ ... };


idstring|numberthe id of an item
eventMouseEventa native HTML event object

Example"itemClick", (id, event) => {
    console.log(id, event);
// For diagram editor"itemClick", (id, event) => {
    console.log(id, event);

Related samples


If a click is done over a swimlane, the event will be fired on the cell of the swimlane.

See also
Change log

Added in v4.0

Back to top