SetOnComponentEnterCallback

Subscribe to this event to be notified when a pointing device (mouse) moves onto an equipment.

Event callback

OnComponentEnterCallback(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.SetOnComponentEnterCallback(OnMouseEnter);
function OnMouseEnter(id)
{
    console.log("OnMouseEnter: Id=" + id);
}