Sanity Library Reference Docs
    Preparing search index...

    Class TimelineControllerBeta

    The controller is responsible for fetching information about a document and maintaining a Timeline.

    Index

    Constructors

    Properties

    client: SanityClient
    handler: (err: Error, controller: TimelineController) => void
    selectionState: SelectionState = 'inactive'

    The selection state represents the different states of the current selection:

    • inactive: No selection is active.
    • rev: A selection is active for a single revision.
    • range: A selection is active for a range and we have all the data needed to render it.
    • loading: A selection is active, but we don't have the entries yet.
    • invalid: The selection picked is invalid.
    timeline: Timeline
    version: number = 0

    Accessors

    Methods