ShapeClick

fires on clicking a shape

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

Parameters

idstring|numberthe shape id

Example

diagram.events.on("ShapeClick", function(id) {
    console.log('An item "' + diagram.data.getItem(id).text + '" clicked');
});

Related samples

See also
Back to top