function
Source: eventHandler.ts ↗
singleEventTypeHandler()
Creates a DashboardEventHandler instance that will be invoked for one specified event type.
export declare function singleEventTypeHandler(type: (DashboardEvents | ICustomDashboardEvent)["type"], handler: DashboardEventHandler["handler"]): DashboardEventHandler;
Parameters
Parameter | Type | Description |
|---|---|---|
type | (DashboardEvents | ICustomDashboardEvent)[“type”] | the type of event this handler should trigger for |
handler | DashboardEventHandler[“handler”] | the actual event handling function |
Returns