commandFailedEventHandler()
Home > @gooddata/sdk-ui-dashboard > commandFailedEventHandler
commandFailedEventHandler() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Creates a DashboardEventHandler instance that will be invoked for a DashboardCommandFailed of a particular command.
Signature:
export declare function commandFailedEventHandler<TCommand extends IDashboardCommand>(type: TCommand["type"], handler: DashboardEventHandler<DashboardCommandFailed<TCommand>>["handler"]): DashboardEventHandler<DashboardCommandFailed<TCommand>>;
Parameters
Parameter | Type | Description |
---|---|---|
type | TCommand["type"] | the type of command the DashboardCommandFailed of which this handler should trigger for |
handler | DashboardEventHandler<DashboardCommandFailed<TCommand>>["handler"] | the actual event handling function |
Returns:
DashboardEventHandler<DashboardCommandFailed<TCommand>>