addCustomEventHandler()
Home > @gooddata/sdk-ui-dashboard > IDashboardEventHandling > addCustomEventHandler
IDashboardEventHandling.addCustomEventHandler() method
Adds a custom event handler. This is a lower-level API where the handler can include both the function to evaluate events and the function to trigger when the evaluation succeeds.
Signature:
addCustomEventHandler(handler: DashboardEventHandler): IDashboardEventHandling;
Parameters
Parameter | Type | Description |
---|---|---|
handler | DashboardEventHandler | event handler to add |
Returns:
self, for call chaining sakes
Remarks
Attempts to register same handler twice will be ignored.