Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TimelineTrackProps

Props for TimelineTrack

Hierarchy

  • TimelineTrackProps

Index

Properties

elementClicked

elementClicked: function

Callback invoked when an element is clicked. Receives the ID and the current duration of the element that has been clicked

Type declaration

    • (id: string, currentDuration: number): void
    • Parameters

      • id: string
      • currentDuration: number

      Returns void

elementRemoved

elementRemoved: function

Callback invoked when an element is removed from the track. Receives the ID of the element that has been removed

Type declaration

    • (id: string): void
    • Parameters

      • id: string

      Returns void

elements

elements: List<TimelineElement>

The elements that should be rendered on the track

height

height: number

The height of the track

Optional labelColor

labelColor: undefined | string

The background color of the label

Optional locked

locked: undefined | false | true

Whether the track is locked

name

name: string

The name of the track

Optional offsets

offsets: [number, number]

Margins to the left and right of the track, given as [lmargin, rmargin]

Optional scrubberPosition

scrubberPosition: undefined | number

The position of the scrubber head in pixels

Optional trackDuration

trackDuration: undefined | number

The duration of the track in seconds

width

width: number

The width of the track

Generated using TypeDoc