interface MobileOptions {
    bottombar?: BottombarControls;
    canSelectInterval?: (code: string) => boolean;
    container: HTMLElement;
    indicators: boolean;
    intervals: readonly string[];
    mode?: MobileMode;
    rail: null | RailHandle;
    search?: SymbolSearch;
    timeframePreferences?: TimeframePreferences;
    tools?: readonly string[];
    topbar: boolean;
    indicatorsAvailable(): boolean;
    onAlerts(anchor: HTMLElement): boolean;
    onCapture(anchor: HTMLElement): void;
    onChartType(id: string): void;
    onDataWindow(anchor: HTMLElement): boolean | void;
    onGoTo(anchor: HTMLElement): boolean | void;
    onIndicators(anchor: HTMLElement): boolean;
    onInterval(code: string): void;
    onLayouts(anchor: HTMLElement): boolean | void;
    onNews(anchor: HTMLElement): boolean | void;
    onObjects(anchor: HTMLElement): boolean;
    onProperties(anchor: HTMLElement): boolean;
    onSettings(anchor: HTMLElement): boolean;
    onSymbol(symbol: string, exchange?: string): void;
    onTheme(): void;
    onWatchlist(anchor: HTMLElement): boolean | void;
    settingsAvailable(): boolean;
    state(): TopbarState;
}

Properties

bottombar?: BottombarControls

The bottom bar's controls. The phone layout hides the bar, so the More sheet lists them instead: the market status and the clock, the preset ranges, the price scale toggles and the timezone.

canSelectInterval?: (code: string) => boolean
container: HTMLElement
indicators: boolean
intervals: readonly string[]
mode?: MobileMode
rail: null | RailHandle
search?: SymbolSearch
timeframePreferences?: TimeframePreferences
tools?: readonly string[]
topbar: boolean

Methods

  • Parameters

    • anchor: HTMLElement

    Returns boolean

  • Parameters

    • anchor: HTMLElement

    Returns boolean | void

  • Parameters

    • anchor: HTMLElement

    Returns boolean | void

  • Parameters

    • anchor: HTMLElement

    Returns boolean

  • Open the Layouts menu, centred. Omitted without a store. Since 2.5.10.

    Parameters

    • anchor: HTMLElement

    Returns boolean | void

  • Parameters

    • anchor: HTMLElement

    Returns boolean | void

  • Parameters

    • anchor: HTMLElement

    Returns boolean

  • Parameters

    • anchor: HTMLElement

    Returns boolean

  • Parameters

    • anchor: HTMLElement

    Returns boolean

  • Parameters

    • symbol: string
    • Optionalexchange: string

    Returns void

  • Parameters

    • anchor: HTMLElement

    Returns boolean | void