singleEventTypeHandler()
Home > @gooddata/sdk-ui-dashboard > singleEventTypeHandler
singleEventTypeHandler() function
Creates a DashboardEventHandler instance that will be invoked for one specified event type.
Signature:
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: