SliderView.id
property · packages/mixins-ui/src/slider.ts:86
readonly id: stringPrefixes the ids the slider draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/slider.ts:84
interface SliderView<Message, Value extends number | Range> extends Bounds {
readonly id: string
readonly label: string
readonly value: Value
readonly onChange: (value: Value) => NoInfer<Message>
readonly format?: ((value: number) => string) | undefined
readonly thumbLabels?: Value extends Range
? | {
readonly low: string
readonly high: string
}
| undefined
: never
readonly marks?: ReadonlyArray<number | Mark> | undefined
readonly ticks?: boolean | undefined
readonly orientation?: 'horizontal' | 'vertical' | undefined
readonly showValue?: boolean | undefined
readonly name?: string | undefined
readonly disabled?: boolean | undefined
readonly style?: NamedStyle<typeof SliderSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}SliderView.idproperty · packages/mixins-ui/src/slider.ts:86
readonly id: stringPrefixes the ids the slider draws, unique on the page.
SliderView.labelproperty · packages/mixins-ui/src/slider.ts:88
readonly label: stringWhat the slider chooses, shown and naming it.
SliderView.valueproperty · packages/mixins-ui/src/slider.ts:90
readonly value: ValueWithin the bounds and on the step; a range's low at most its high.
SliderView.onChangeproperty · packages/mixins-ui/src/slider.ts:92
readonly onChange: (value: Value) => NoInfer<Message>The Message for the next value; its type comes from h.
SliderView.formatproperty · packages/mixins-ui/src/slider.ts:94
readonly format?: ((value: number) => string) | undefinedHow a value reads aloud, as each thumb's aria-valuetext, and as shown; default String.
SliderView.thumbLabelsproperty · packages/mixins-ui/src/slider.ts:96
readonly thumbLabels?: Value extends Range
? | {
readonly low: string
readonly high: string
}
| undefined
: neverA range's thumb names; default Minimum and Maximum. One thumb is named by label.
SliderView.marksproperty · packages/mixins-ui/src/slider.ts:103
readonly marks?: ReadonlyArray<number | Mark> | undefinedValues marked on the track, each drawn with data-filled when the fill
covers it; a Mark also writes its label under the track.
SliderView.ticksproperty · packages/mixins-ui/src/slider.ts:105
readonly ticks?: boolean | undefinedA dot at every step, as marks would draw each (data-tick); for a few steps, not hundreds.
SliderView.orientationproperty · packages/mixins-ui/src/slider.ts:107
readonly orientation?: 'horizontal' | 'vertical' | undefinedDefault horizontal. Vertical runs from the bottom up.
SliderView.showValueproperty · packages/mixins-ui/src/slider.ts:109
readonly showValue?: boolean | undefinedDraws each thumb's value, formatted, beside it; the recipe's value axis places it.
SliderView.nameproperty · packages/mixins-ui/src/slider.ts:111
readonly name?: string | undefinedSubmits the value under this name; a range submits both, low first.
SliderView.disabledproperty · packages/mixins-ui/src/slider.ts:112
readonly disabled?: boolean | undefinedSliderView.styleproperty · packages/mixins-ui/src/slider.ts:114
readonly style?: NamedStyle<typeof SliderSlots> | undefinedA style of SliderSlots, for the look.
SliderView.mixinsproperty · packages/mixins-ui/src/slider.ts:116
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.