Change a range of values using a slider.
- Adjust lower bound and upper bound values on the slider
- Execute a microflow when a slider value is changed or clicked
- Show or hide a tooltip on hover
- Render range slider with different bootstrap colors
Mendix 7.4
Range minimum attribute
- The attribute that contains theminimum
slider value, if not provided, 'Default minimum value' is used.Range maximum attribute
- The attribute that contains themaximum
slider value, if not provided, 'Default maximum value' is used.Selected minimum attribute
- The attribute that contains theminimum
bound slider value.Selected maximum attribute
- The attribute that contains themaximum
bound slider value.
The Range slider
allows a user to set two values between two bounds (minimum value and maximum value)
However, if there is only one value that needs to be set between two bounds, download the slider from appstore or from github instead.
From the modeler place the widget in the context of an object that has attributes for maximum value, minimum value, lower bound value and upper bound value
The maximum and minimum values determine the range within which the range slider values can be adjusted.
The step value determines the next point to shift to when sliding (interval between to points or numbers).
For the step value, the difference between the maximum value and the minimum value should be divisible by 2. i.e.
(maximumValue - minimumValue) % 2 = 0
https://rangeslider.mxapps.io/
We are actively maintaining this widget, please report any issues or suggestions for improvement at https://github.com/mendixlabs/range-slider/issues
Prerequisite: Install git, node package manager, webpack CLI, grunt CLI, Karma CLI
To contribute, fork and clone.
> git clone https://github.com/mendixlabs/range-slider.git
The code is in typescript. Use a typescript IDE of your choice, like Visual Studio Code or WebStorm.
To set up the development environment, run:
> npm install
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
https://github.com/MendixLabs/range-slider/releases/latest. Changes to the widget code shall be automatically pushed to this test project.
To automatically compile, bundle and push code changes to the running test project, run:
> grunt
To run the project unit tests with code coverage, results can be found at dist/testresults/coverage/index.html
, run:
> npm test
or run the test continuously during development:
> karma start