interface BottombarOptions {
    now?: () => number;
    ranges?: readonly WidgetRange[];
    target?: () => null | BottombarTarget;
    timezones?: readonly string[];
    onGoTo(anchor: HTMLElement): boolean | void;
    onTimezone(zone: string): void;
}

Properties

now?: () => number

Clock for the time and the market status, in milliseconds. Default Date.now.

ranges?: readonly WidgetRange[]

The range buttons. [] leaves them out. Default DEFAULT_RANGES.

target?: () => null | BottombarTarget

What the bar acts on, read at every use: a grid passes its focused chart. Default: the context's chart, with no ranges.

timezones?: readonly string[]

Zones the timezone menu lists first. Default: those the settings dialog offers.

Methods

  • Open the go-to panel from the bar's button. Omit to leave the button out.

    Parameters

    • anchor: HTMLElement

    Returns boolean | void

  • Called after the bar moves the chart to another zone, for a host that keeps its own copy.

    Parameters

    • zone: string

    Returns void