useDashboardEventDispatch()
Home > @gooddata/sdk-ui-dashboard > useDashboardEventDispatch
useDashboardEventDispatch() 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.
Convenience hook for dispatching Dashboard events.
Signature:
useDashboardEventDispatch: () => (eventBody: DashboardEventBody<ICustomDashboardEvent<any> | DashboardEvents>) => void
Returns:
(eventBody: DashboardEventBody<ICustomDashboardEvent<any> | DashboardEvents>) => void
function that you can use to dispatch Dashboard events