- Issue created by @Debra
- π¨π¦Canada Debra
I was able to remove the decimals by modifying bef_sliders.js and in the format setting when creating the slider, apply the parseInt function to the 'to' and 'from' values.
noUiSlider.create(slider, { range: { 'min': parseFloat(sliderOptions.min), 'max': parseFloat(sliderOptions.max) }, step: parseFloat(sliderOptions.step), animate: !!sliderOptions.animate, animationDuration: parseInt(sliderOptions.animate), orientation: sliderOptions.orientation, start: [defaultMin, defaultMax], format: { // 'to' the formatted value. Receives a number. to: function (value) { //return Math.trunc(Number(value)); return parseInt(value); }, // 'from' the formatted value. from: function (value) { // return Math.trunc(Number(value)); return parseInt(value);
It would be nice if this was a setting in the Exposed Filter Settings section of the view.
- πΊπΈUnited States smustgrave
Can you check if issue on 7.0.x branch?
- Status changed to Postponed: needs info
about 1 month ago 4:08pm 2 August 2024 - Status changed to Closed: outdated
9 days ago 4:38pm 29 August 2024 - πΊπΈUnited States smustgrave
If experiencing on 7.0.x branch please reopen.