SetOnComponentPressedCallback
Subscribe to this event to be notified when a pointing device (mouse) is pressed on an equipment.
Event callback
OnComponentPressedCallback(id: string)
Parameters
- id (string): The internal id of the target equipment.
Example
Subscribes to this event and then output the target equipment to the console.
SYM3.SetOnComponentPressedCallback(OnMousePressed);
function OnMousePressed(id)
{
console.log("OnMousePressed: Id=" + id);
}