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 and hold them. Null lets the row follow the latest bar again, as it does while the pointer is away.

    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. Changing a title already set clears the readings until the chart's primary data is next replaced, since the bars still on the chart are the previous title's.

    Parameters

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

    Returns void