Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > bind

Surface.bind() method#

Bind the given handler to the event with the given name.

Signature:

bind(evt: string, fn: (value: any, event?: any) => any): EventGenerator;

Parameters#

ParameterTypeDescription
evtstringName of the event to bind to.
fn(value: any, event?: any) => anyHandler for the event.

Returns:

EventGenerator