Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > trigger
jsPlumbToolkitTestHarness.trigger() method
Trigger the event with the given name on the given object. By default the event will occur in the middle of the DOM element representing the object.
Signature:
trigger(obj: any, eventName: string, evt: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
obj | any | Node/Port/Group id, node/port/group, or DOM element. |
eventName | string | eg 'click', 'mouseover' |
evt | any | Optional, an event you previously created via #makeEvent. Sometimes you want to control the specific location of the event. |
Returns:
void