Skip to content

charton API


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

Interface: SegmentedTabs ​

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

A segmented control made by segmentedTabs: its element, set to select a value without calling onChange, and destroy.

Properties ​

el ​

el: HTMLDivElement

Defined in: ui/src/controls.ts:74

Methods ​

destroy() ​

destroy(): void

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

Stop measuring; call when removing the control.

Returns ​

void


relabel() ​

relabel(label, options): void

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

Rename the control and its options, e.g. in a new language; options match the original ones by index.

Parameters ​

label ​

string

options ​

readonly SegmentOption[]

Returns ​

void


set() ​

set(value): void

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

Parameters ​

value ​

string

Returns ​

void