Skip to content

charton API


charton API / @chart-on/ui / index / ToolbarButtonContent

Interface: ToolbarButtonContent ​

Defined in: ui/src/toolbar.ts:69

What a button shows while it follows the chart; see the button's content.

Properties ​

detail? ​

optional detail?: string

Defined in: ui/src/toolbar.ts:73

Smaller, muted text after it, e.g. an exchange. Drops when the toolbar is narrow.


keys? ​

optional keys?: string

Defined in: ui/src/toolbar.ts:79

Keyboard shortcuts in aria-keyshortcuts form, e.g. Control+K /.


label? ​

optional label?: string

Defined in: ui/src/toolbar.ts:75

Accessible name. Default the item's label.


text ​

text: string

Defined in: ui/src/toolbar.ts:71

Visible text beside the icon.


tip? ​

optional tip?: string

Defined in: ui/src/toolbar.ts:77

Tooltip. Default the item's label.