Skip to main content

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​

ParameterTypeDescription
objanyNode/Port/Group id, node/port/group, or DOM element.
eventNamestringeg 'click', 'mouseover'
evtanyOptional, an event you previously created via #makeEvent. Sometimes you want to control the specific location of the event.

Returns:

void