Example on How to use formatValue in Stepper?


Can you help me on how to use the param “formatValue” in stepper?

I need them to fix the round problem with decimals (.1 + .2 != .3).

Couldn’t find any example in docs:

formatValue function (value) Function to format value in required format. It accepts current value and must return new formatted value;

var stepper = app.stepper.create({

el: ‘.stepper’,
on: {
change: function () {
console.log(‘Stepper value changed’)