locate

gets the id of an item from the specified HTML event or tag

string|number locate(Event e);

Parameters

eEventa native event object

Returns

string|numberthe id of the shape that the event/tag relates to

Example

var id = diagram.locate(e);

Back to top