The events the shell publishes on ctx.bus.

interface WidgetBusEvents {
    data: { bars: number; error?: string; interval: string; symbol: string };
    interval: { interval: string };
    "keymap:conflict": { combo: string; kept: string; shadowed: string };
    layout: { chartType?: string; reason: string };
    status: { kind: "error" | "info"; text: string };
    symbol: { exchange: string; symbol: string };
    theme: { chartTheme: ChartTheme; theme: WidgetThemeName };
    [key: string]: unknown;
}

Indexable

  • [key: string]: unknown

Properties

data: { bars: number; error?: string; interval: string; symbol: string }

Bars finished loading, or failed to.

interval: { interval: string }
"keymap:conflict": { combo: string; kept: string; shadowed: string }

A keymap registration collided with another binding.

layout: { chartType?: string; reason: string }

Something about the workspace changed: the chart type, a restored layout, a pane.

status: { kind: "error" | "info"; text: string }

The status line's transient message changed.

symbol: { exchange: string; symbol: string }
theme: { chartTheme: ChartTheme; theme: WidgetThemeName }