newDashboardEventPredicate()
Home > @gooddata/sdk-ui-dashboard > newDashboardEventPredicate
newDashboardEventPredicate() 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.
Creates DashboardEvent predicate that test whether the provided event matches it.
Signature:
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 & { type: T; }) => boolean | (Optional) predicate to test |
Returns:
(event: Action) => boolean
boolean - matches?