locate()
Description
Gets the ID of an item from the specified HTML event or tag
Usage
locate(event: object): any;
Parameters
event
- (required) a native event object
Returns
The method returns the ID of the shape that the event/tag relates to
Example
const diagram = new dhx.Diagram("diagram_container");
diagram.data.parse(data);
const id = diagram.locate(event);