Arguments for the afterEventCollapse event. Emitted after a timeline event card is collapsed.

interface AfterEventCollapseArgs<T> {
    domEvent?: Event;
    errorMessage?: string;
    event: MJTimelineEvent<T>;
    group: TimelineGroup<T>;
    index: number;
    success: boolean;
}

Type Parameters

  • T = any

    The type of the source record

Hierarchy (view full)

Properties

domEvent?: Event

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

errorMessage?: string

Error message if the operation failed. Only populated when success is false.

The timeline event being interacted with.

The source group this event belongs to.

index: number

Index of this event within the flattened events array.

success: boolean

Whether the operation completed successfully. Will be false if an error occurred during the operation.