shapeDblClick

fires on double-clicking a shape

void shapeDblClick(string|number id){ ... };

Parameters

idstring|numberthe shape id

Example

diagram.events.on("shapeDblClick", function(id) {
    console.log('An item "' + diagram.data.getItem(id).text + '"double-clicked');
});
 
// For editor
editor.diagram.events.on("shapeDblClick", function(id) {
    console.log('An item"' + editor.diagram.data.getItem(id).text + '"double-clicked');
});

Related samples

See also
Back to top