Skip to main content
Version: 1.0.4

Slider

A numeric slider exposing a number, for values with a natural range.

The Slider component as it renders with its default settings.The Slider component as it renders with its default settings.

Reach for it when you need:

  • A setpoint within known limits
  • A filter threshold on a dashboard

Component name: Slider · Category: Input

In the palette: Numeric slider track (exposes a number value)

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
valuenumber0The current number — reflects the handle position, and bindable.
minnumber0
maxnumber100
stepnumber1
showValuebooleantrueShow the current value as a pill beside the track.
tooltipbooleanfalsePop a value tooltip above the handle while dragging.
thicknessnumber4Track line thickness in px (default 4).
unitstring""Optional suffix shown next to the value (e.g. %, px).
titlestringSlider
showTitlebooleantrue
titleSizenumber13
disabledbooleanfalse
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
changeChangeInputThe DOM event.
submitSubmitInputThe DOM event.
focusFocusInputThe DOM event.
blurBlurInputThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

Bound directly to a tag, a slider writes continuously as it is dragged. Prefer binding it to a client variable and writing once, on release, through an event action.