AnyLumino
API referenceastryxinputs

SelectionSlider

Render an Astryx slider that steps through discrete options.

Astryx Slider works on a linear numeric scale, so this wrapper drives it over option indices and synchronizes the selected option value. Pass a two-item value to select a range instead of a single option.

Notes

Functions

constructor__init__(items, value=None, *, label='', label_position='top', label_width=None, marks=False, disabled=False, value_display=None, description=None, **props) -> None
paramitemsIterable[Any] | Mapping[str, Any]

Option labels, (label, value) pairs, or a label to value mapping.

paramvalueAny
= None

Selected option value, or a two-item sequence for a range. Defaults to the first option.

paramlabelstr
= ''

Visible or accessible label for the component.

paramlabel_positionstr
= 'top'

Place the label above the slider or beside it in a compact row.

paramlabel_widthint | float | str | None
= None

Width of a left-side label. Use the same width to align sibling sliders.

parammarksbool
= False

Whether to draw a labelled tick for every option.

paramdisabledbool
= False

Whether the component should render disabled.

paramvalue_displaystr | None
= None

Tooltip, text, or hidden value presentation.

paramdescriptionstr | None
= None

Helper text displayed with the input.

parampropsAny
= {}

Returns

None

On this page