Skip to main content

Interface: SliderConfig

Defined in: interaction/Controls.ts:33

Configuration for a slider control.

Properties

label

label: string

Defined in: interaction/Controls.ts:35

Label text displayed above the slider.


max

max: number

Defined in: interaction/Controls.ts:39

Maximum value.


min

min: number

Defined in: interaction/Controls.ts:37

Minimum value.


onChange()

onChange: (value) => void

Defined in: interaction/Controls.ts:45

Callback when value changes.

Parameters

value

number

Returns

void


step?

optional step: number

Defined in: interaction/Controls.ts:43

Step increment. Defaults to (max-min)/100.


value?

optional value: number

Defined in: interaction/Controls.ts:41

Initial value. Defaults to min.