> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# DashboardEventHandler

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: type-alias
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/eventHandlers/eventHandler.ts
- Guides: [Handle dashboard events](https://www.gooddata.ai/docs/gooddata-ui/latest/dashboard-plugins/dashboard-events/index.md), [Track user interactions](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/interactivity/track-user-interactions/index.md)

Event handlers can be registered for a dashboard.

**Signature:**

```typescript
export type DashboardEventHandler<TEvents extends DashboardEvents | ICustomDashboardEvent = any> = {
    eval: DashboardEventEvalFn;
    handler: DashboardEventHandlerFn<TEvents>;
};
```
**References:** [DashboardEvents](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardevents/index.md), [ICustomDashboardEvent](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.icustomdashboardevent/index.md), [DashboardEventEvalFn](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardeventevalfn/index.md), [DashboardEventHandlerFn](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardeventhandlerfn/index.md)

## Remarks

All events that occur during dashboard processing will be evaluated against all registered handlers and if evaluation succeeds they will be dispatched to the handler function.
