Increment / decrement a number input with buttons on the side. Adjustable how much is added/removed at a time.
- Set the interval in which rate the + and - buttons update the integer.
- Display an inputType string that may clarify which kind of number it is about (EUR, %, $, kg, cm, ...).
- Set a minimal Number. The widget doesn't allow decreasing the values beneath this number.
- Set a maximum Number. The widget doesn't allow increasing the values above this number.
- Set the attribute that is being influenced through this widget.
- read-only style (
control,text). - Define OnChange action.
Add this widget to your page and adjust features as desired. The only required thing is setting the Integer attribute.
- Install NPM package dependencies by using:
npm install. If you use NPM v7.x.x, which can be checked by executingnpm -v, execute:npm install --legacy-peer-deps. - Run
npm startto watch for code changes. On every change:- the widget will be bundled;
- the bundle will be included in a
distfolder in the root directory of the project; - the bundle will be included in the
deploymentandwidgetsfolder of the Mendix test project.