Interface SchedulePanelParams

Constructor parameters for SchedulePanel.

interface SchedulePanelParams {
    container?: HTMLElement;
    player: SchedulePlayer;
    storageKey?: string;
    title?: string;
    visible?: boolean;
    x?: number;
    y?: number;
}

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".

title?: string

Panel title. Defaults to "Schedule".

visible?: boolean

Show on construction (default true).

x?: number

Initial left offset in CSS pixels, applied when supplied.

y?: number

Initial top offset in CSS pixels, applied when supplied.