Arguments for the beforeEventExpand event. Emitted before a timeline event card is expanded.

Example

onBeforeExpand(args: BeforeEventExpandArgs<TaskEntity>) {
// Require permission to view details
if (!this.canViewDetails(args.event.entity)) {
args.cancel = true;
this.promptLogin();
}
}
interface BeforeEventExpandArgs<T> {
    cancel: boolean;
    domEvent?: Event;
    event: MJTimelineEvent<T>;
    group: TimelineGroup<T>;
    index: number;
}

Type Parameters

  • T = any

    The type of the source record

Hierarchy (view full)

Properties

cancel: boolean

Set to true to cancel the default behavior. Default value is false.

domEvent?: Event

The original DOM event, if applicable. May be undefined for programmatic triggers.

The timeline event being interacted with.

The source group this event belongs to.

index: number

Index of this event within the flattened events array.