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

# newDashboardEventPredicate()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/events/index.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Creates DashboardEvent predicate that test whether the provided event matches it.

**Signature:**

```typescript
export declare function newDashboardEventPredicate<T extends DashboardEvents["type"]>(eventType: T, pred?: (event: DashboardEvents & {
    type: T;
}) => boolean): (event: Action) => boolean;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| eventType | T | dashboard event type |
| pred | (event: [DashboardEvents](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardevents/index.md) &amp; { type: T; }) =&gt; boolean | _(Optional)_ predicate to test |

**Returns:**

(event: Action) =&gt; boolean

boolean - matches?
