Skip to content

charton API


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

Type Alias: ToolbarCustomizationPart ​

ToolbarCustomizationPart = (host, chart, toolbar, apply) => ToolbarCustomization

Defined in: ui/src/toolbar-customization.ts:39

The toolbar's customize part, made by toolbarCustomization(options). The toolbar calls it with the element its panel opens in, the chart it acts on, its items and preference store, and a function that shows a list of items.

Parameters ​

host ​

HTMLElement

chart ​

() => Chart

toolbar ​

Pick<ToolbarOptions, "items" | "settings" | "storageKey">

apply ​

(items) => void

Returns ​

ToolbarCustomization