You're viewing documentation for Draftbit Classic (v1), our previous
platform. See the current Draftbit docs.
Slider
The Slider is a component that allows the user to select a value from a fixed range of numbers.
How to use
Section titled “How to use”- Go to the Data tab (third tab) in the Properties Panel.
- Now you can assign a custom value for the component to display and start using the Initial Values property.
Style Properties
Section titled “Style Properties”Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.
Component Specific Styles
Section titled “Component Specific Styles”| Property | Description |
|---|---|
| Min Track Color | The color used for the track to the left of the button. |
| Max Track Color | The color used for the track to the right of the button. |
| Thumb Color | The color used for the thumb. |
Configuration Properties
Section titled “Configuration Properties”| Property | Description |
|---|---|
| Component name | To alter the name of the component. The name is reflected in the Components tree. Defaults to Slider. |
| Step | Set the increment of the value. |
| Min Value | Minimum value of the slider. |
| Max Value | Maximum value of the slider. |
| Left Icon | To add an icon at the beginning of Slider |
| Right Icon | To add an icon at the end of Slider |
Data Configuration
Section titled “Data Configuration”| Property | Description |
|---|---|
| Data Source | Initialize the stateful component with a value from a data source. Accept value: any numerical value depending on the max and min value defined in Configuration. |
Conditional Display
Section titled “Conditional Display”You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.
Triggers
Section titled “Triggers”| Trigger name | Description |
|---|---|
| On Value Changed | Runs the Actions when the value changes |