Skip to main content
Version: 2027.02 Beta
View as Markdown

Perspective - Slider

Component Palette Icon:

Description​

The Slider component lets the user drag an indicator along a scale to choose a value in a range. Enable the "show" and "interval" properties under "labels" to visually display the values within a range. The slider can be configured to orient horizontally or vertically with the "orientation" property.

Properties​

Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective. This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.

NameDescriptionProperty Type
valueValue represented by slider handle. Current value of the slider.value: numeric
minThe minimum value for the slider scale: all the way left or down.value: numeric
maxThe maximum value for the slider scale: all the way right or up.value: numeric
orientationSpecifies whether the slider track is aligned vertically or horizontally.value: boolean
stepIntervals along track at which a value may be set. Specifies the size of increments between values of the slider.

Note: This does not force the value into that step size. Setting the slider value manually or through a binding will cause it to show the actual value.
value: numeric
labelsLabel settings along the track.
  • show: If true, displays labels at periodic values along track. Value is boolean.
  • interval: Interval at which to display periodic labels along track. Value is numeric.
object
enabledWhether slider interaction is currently active.

Note: If the component is disabled, scripts can still run on the component. For example, if you add a script action to the onClick event, the script will fire when the user clicks on the Slider.
value: boolean
handleColorColor of slider handle. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value. See Color Selector Reference.color
trackColorColor of slider track. See Color Selector Reference.color
styleSets a style for this component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.object

Component Scripts and Events​

Further component interaction and functionality can be configured for all components through scripting and event actions. Right-click on the component or select Components from the Designer menubar to access the configuration popups for both of these options:

  • Configure Events: Accesses the Event Configuration popup where you can configure actions to run in response to events to make the component dynamic. The Events Configurations page shows how to configure events and actions on a Perspective component.

  • Configure Scripts: Accesses the Script Configuration popup where custom methods and message handlers can be added. The Scripting in Perspective section details scripting fundamentals, creating custom methods, and using message handlers.

Example​

PropertyValue
props.value65
props.orientationvertical
props.step5
props.labels.showtrue
props.labels.interval10
props.handleColor#8AFF8A
props.trackColor#CCFFFF