Skip to main content

<ui-slider>

A horizontal slider for float or integer values.

<ui-slider id="volume" min="0" max="1" value="0.5"></ui-slider>
<ui-slider id="speed" min="0" max="200" value="100" type="int" format="%d km/h"></ui-slider>

Attributes

AttributeRequiredDescription
idyesElement identifier
minnoMinimum value (default 0)
maxnoMaximum value (default 1)
valuenoInitial value
typenofloat (default) or int
formatnoprintf-style format string for the label. Defaults to "%.3f" for float and "%d" for int

Event

Emits input-changed on mouse release. The emitted value is an integer string when type="int", a float string otherwise.