Interface SchedulePanelParams

Constructor parameters for SchedulePanel.

interface SchedulePanelParams {
    container?: HTMLElement;
    player: SchedulePlayer;
    storageKey?: string;
    visible?: boolean;
}

Properties

container?: HTMLElement

DOM container; defaults to document.body.

The player whose schedule is rendered. The panel two-way-binds to the player: the player's onDateChanged updates the cursor; dragging the cursor or clicking a milestone calls back into the player's setDateMs / nextMilestone / play / pause.

storageKey?: string

localStorage key for persisting drag position + closed state. Defaults to "xkt-sch-panel".

visible?: boolean

Show on construction (default true).