Arguments for the afterSegmentExpand event. Emitted after a time segment is expanded.

interface AfterSegmentExpandArgs {
    endDate: Date;
    errorMessage?: string;
    eventCount: number;
    label: string;
    segment: TimelineSegment;
    startDate: Date;
    success: boolean;
}

Hierarchy (view full)

Properties

endDate: Date

End date of the segment.

errorMessage?: string

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

eventCount: number

Number of events in the segment.

label: string

The segment's display label.

The segment being interacted with.

startDate: Date

Start date of the segment.

success: boolean

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