Class TimelineIndexInternal

A thing which contains a timeline reference, and an index into it.

Constructors

Properties

index: number
pendingPaginate?: Promise<boolean>
timeline: EventTimeline

Methods

  • Try move the index forward, or into the neighbouring timeline

    Parameters

    • delta: number

      number of events to advance by

    Returns number

    number of events successfully advanced by

  • Returns number

    the maximum possible value for the index in the current timeline (exclusive - ie, it actually returns one more than the index of the last element).

  • Returns number

    the minimum possible value for the index in the current timeline

  • Try move the index backwards, or into the neighbouring timeline

    Parameters

    • delta: number

      number of events to retreat by

    Returns number

    number of events successfully retreated by

Generated using TypeDoc