Skip to content

charton API


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

Type Alias: ToolbarItem ​

ToolbarItem = ToolbarItemLayout & ToolbarItemWatch & ToolbarItemText & object | ToolbarItemWatch & ToolbarItemText & object | ToolbarItemWatch & ToolbarItemText & object | { id?: string; type: "separator"; } | { id?: string; type: "spacer"; } | { id: string; render: (host, chart) => void | (() => void); type: "custom"; }

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

An entry of the top toolbar: segmented buttons, a button, a dropdown menu, a separator, a spacer or custom content, with the placement fields every item takes.