Home > @jsplumbtoolkit/browser-ui > Surface > off
Surface.off() method
Unbind an event listener from the given DOM Element. This is a utility function that can be used on any element in the DOM, not just things rendered by the Toolkit.
Signature:
off(el: Document | Element | NodeListOf<Element>, event: string, handler: Function): void;
Parameters
Parameter | Type | Description |
---|---|---|
el | Document | Element | NodeListOf<Element> | Element, or elements, from which to remove the event binding. |
event | string | Name of the event to unbind |
handler | Function | The function to unbind |
Returns:
void