interface TopbarOptions {
    indicators?: boolean;
    intervals: readonly string[];
    search?: SymbolSearch;
    state: () => TopbarState;
    indicatorsAvailable(): boolean;
    onChartType(id: string): void;
    onIndicators(anchor: HTMLElement): boolean;
    onInterval(code: string): void;
    onObjects(anchor: HTMLElement): boolean;
    onSettings(anchor: HTMLElement): boolean;
    onSymbol(symbol: string, exchange?: string): void;
    onTheme(next: WidgetThemeName): void;
    settingsAvailable(): boolean;
}

Properties

indicators?: boolean

Show the indicators button. Default true.

intervals: readonly string[]
search?: SymbolSearch
state: () => TopbarState

The current facts, read on every refresh.

Methods

  • Parameters

    • anchor: HTMLElement

    Returns boolean

  • A text control for the host's object inventory, omitted without a handler.

    Parameters

    • anchor: HTMLElement

    Returns boolean

  • Open the settings dialog from anchor. Return false when no dialog is registered.

    Parameters

    • anchor: HTMLElement

    Returns boolean

  • Parameters

    • symbol: string
    • Optionalexchange: string

    Returns void