getOnChangeHandlerForDashboard()
Home > @gooddata/sdk-ui-dashboard > DashboardStoreAccessorRepository > getOnChangeHandlerForDashboard
DashboardStoreAccessorRepository.getOnChangeHandlerForDashboard() method
Creates a callback for given dashboard.
Signature:
static getOnChangeHandlerForDashboard(dashboard: ObjRef | string): (state: DashboardState, dispatch: DashboardDispatch) => void;
Parameters
Parameter | Type | Description |
---|---|---|
dashboard | ObjRef | string | an ObjRef of the dashboard, or its id as a string |
Returns:
(state: DashboardState, dispatch: DashboardDispatch) => void