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?
optionalicon?:IconSource
Defined in: ui/src/toolbar-presets.ts:487
id?
optionalid?: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?
optionallabel?: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?
optionaltext?:string
Defined in: ui/src/toolbar-presets.ts:489
Visible text beside the icon.