interface StatuslineHandle {
    el: HTMLElement;
    destroy(): void;
    refresh(): void;
    setBar(bar: null | Bar, time: null | number): void;
    setMessage(text: string, kind?: "error" | "info"): void;
    setSymbol(symbol: string, exchange: string, interval: string): void;
}

Properties

el: HTMLElement

Methods

  • Show a bar's readings; null clears them (the pointer left and there is no last bar).

    Parameters

    • bar: null | Bar
    • time: null | number

    Returns void

  • Put a transient message at the right. error tints it.

    Parameters

    • text: string
    • Optionalkind: "error" | "info"

    Returns void

  • The title: symbol, optional exchange, and the interval code.

    Parameters

    • symbol: string
    • exchange: string
    • interval: string

    Returns void