The Slider widget can be used to change a number value using a slider.
- Adjust the slider value
- Execute a microflow when a slider value is changed or clicked
- Show a tooltip on hover
- Render slider with different bootstrap colors
1.2 Demo App
For a demo app that has been deployed with this widget, see here.
The following properties must be configured:
- Value attribute – the selected value on the slider
- Range minimum attribute – the attribute that contains the minimum slider value; if not provided, Default minimum value is used
- Range maximum attribute – the attribute that contains the maximum slider value; if not provided, Default maximum value is used
The slider enables setting a value between two bounds (minimum value and maximum value). However, if there are two values that need to be set between two bounds, using the Range Slider widget is recommended..
In Studio Pro, place the widget in the context of an object that has attributes for a maximum value, minimum value, and value. The maximum and minimum values determine the range within which the slider value can be adjusted. The step value determines the next point to shift to when sliding (meaning, it is the interval between two points or numbers).
When choosing the step value, the difference between the maximum value and the minimum value should be divisible by 2 (meaning,
(maximumValue - minimumValue) % 2 = 0).
4 Developing This Marketplace Component
To contribute to the development of this widget, follow these steps:
- Install the following:
- Fork and clone the mendixlabs/slider repository. The code is in Typescript.
- Set up the development environment by running
- Create a folder named dist in the project root.
- Create a Mendix test project in the dist folder and rename its root folder to dist/MxTestProject, or get the test project from mendixlabs/slider. Changes to the widget code will be automatically pushed to this test project.
- To automatically compile, bundle, and push code changes to the running test project, run
- To run the project unit tests with code coverage (results can be found at
- Run the unit test continuously during development via
We are actively maintaining this widget. Please report any issues or suggestions for improvement at mendixlabs/slider.