I'm using noUiSlider and followed the tutorial how to create custom formatting:
noUiSlider.create(sliderFormat, {
start: [ 20 ],
step: 10,
range: {
'min': [ 0 ],
'max': [ 599 ]
},
format: {
to: function ( value ) {
return Math.round(value/60) + ':' + Math.round(value%60);
},
from: function ( value ) {
return value;
}
}
});
When I call
mySlider.get()
it returns a value like 1:10, which is the formatted value. I would like to get the raw value (like 70 in this example), how is that possible?