groupMouseDown

fires when a pointing device button is pressed while the pointer is over a group

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

Parameters

idstring|numberthe id of a group
eventMouseEventa native HTML event object

Example

diagram.events.on("groupMouseDown", (id, event) => {
    console.log(id, event);
});
// For diagram editor
editor.diagram.events.on("groupMouseDown", (id, event) => {
    console.log(id, event);
});

Details

If a pointing device button is pressed while the pointer is 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