SliderView.id
property · packages/mixins-ui/src/slider.ts:118
readonly id: stringPrefixes the ids the slider draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/slider.ts:113
interface SliderView<
Message,
Value extends number | Range | ReadonlyArray<number>,
> extends Bounds {
readonly id: string
readonly label: string
readonly value: Value
readonly onChange: (value: Value) => NoInfer<Message>
readonly onCommit?: ((value: Value) => NoInfer<Message>) | undefined
readonly description?: string | undefined
readonly format?: ((value: number) => string) | undefined
readonly words?: Partial<SliderWords> | undefined
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:118
readonly id: stringPrefixes the ids the slider draws, unique on the page.
SliderView.labelproperty · packages/mixins-ui/src/slider.ts:120
readonly label: stringWhat the slider chooses, shown and naming it.
SliderView.valueproperty · packages/mixins-ui/src/slider.ts:122
readonly value: ValueWithin the bounds and on the step; a range's low at most its high, and a list in order.
SliderView.onChangeproperty · packages/mixins-ui/src/slider.ts:124
readonly onChange: (value: Value) => NoInfer<Message>The Message for the next value; its type comes from h.
SliderView.onCommitproperty · packages/mixins-ui/src/slider.ts:130
readonly onCommit?: ((value: Value) => NoInfer<Message>) | undefinedSent once when the reader lets go, with the value then: the native
change of the range input, which fires on release after a drag and on
each key press, where onChange has sent every step on the way.
SliderView.descriptionproperty · packages/mixins-ui/src/slider.ts:132
readonly description?: string | undefinedSaid under the slider and read with it: each thumb is described by it.
SliderView.formatproperty · packages/mixins-ui/src/slider.ts:134
readonly format?: ((value: number) => string) | undefinedHow a value reads aloud, as each thumb's aria-valuetext, and as shown; default String.
SliderView.wordsproperty · packages/mixins-ui/src/slider.ts:136
readonly words?: Partial<SliderWords> | undefinedThe fixed text; see SliderWords.
SliderView.marksproperty · packages/mixins-ui/src/slider.ts:141
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:143
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:145
readonly orientation?: 'horizontal' | 'vertical' | undefinedDefault horizontal. Vertical runs from the bottom up.
SliderView.showValueproperty · packages/mixins-ui/src/slider.ts:147
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:149
readonly name?: string | undefinedSubmits the value under this name; a range submits both, low first.
SliderView.disabledproperty · packages/mixins-ui/src/slider.ts:150
readonly disabled?: boolean | undefinedSliderView.styleproperty · packages/mixins-ui/src/slider.ts:152
readonly style?: NamedStyle<typeof SliderSlots> | undefinedA style of SliderSlots, for the look.
SliderView.mixinsproperty · packages/mixins-ui/src/slider.ts:154
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.