interface
Source: base.ts ↗
ICustomDashboardEvent
Base type for all custom events.
export interface ICustomDashboardEvent<TPayload = any>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Dashboard context in which the event occurred. | ||
| { acceptedTimestamp: number; } | (Optional) Metadata about the event useful for logging and handling of the event. | |
| TPayload | (Optional) Specify any additional data the custom event needs. | |
| string | Event type. Always starts with “CUSTOM/EVT”. |
Property details
ICustomDashboardEvent.ctxproperty
Dashboard context in which the event occurred.
readonly ctx: DashboardContext;
ICustomDashboardEvent.metaproperty
Metadata about the event useful for logging and handling of the event.
readonly meta?: {
acceptedTimestamp: number;
};
ICustomDashboardEvent.payloadproperty
Specify any additional data the custom event needs.
readonly payload?: TPayload;
ICustomDashboardEvent.typeproperty
Event type. Always starts with “CUSTOM/EVT”.
readonly type: string;