Skip to content

charton API


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

Interface: ToggleVisibilityOptions ​

Defined in: ui/src/toolbar-presets.ts:478

Options for the toggleVisibility preset: the item's id, accessible name, icon and visible text.

Properties ​

icon? ​

optional icon?: IconSource

Defined in: ui/src/toolbar-presets.ts:487


id? ​

optional id?: string

Defined in: ui/src/toolbar-presets.ts:480

Default 'drawings-visibility' for all drawings, else visibility- plus a counter. Pass one to find the item later.


label? ​

optional label?: string

Defined in: ui/src/toolbar-presets.ts:486

Accessible name. Default "Show or hide" and the target's name, in the chart's language (toolbarToggleVisibility, or toolbarToggleDrawings for all drawings).


text? ​

optional text?: string

Defined in: ui/src/toolbar-presets.ts:489

Visible text beside the icon.