ion.rangeSlider
ion.rangeSlider copied to clipboard
How to set indentation for mobile version if grid text label has large value with suffix?
Please see the screen:
I need to make label grid points in a mobile mode less frequently for normal display (to avoid interlaps).
And one more thing...
ionRangeSlider({values: scale(), ...})
where scale - function who returns array.
Thanks in advance!
Yes, this is a bug on a small screens with too dense grid. Unfortunately all you can do:
- Provide alternative
values
array with less items. - Use normal slider without values array. Use
step
instead and then you will be able to usegrid_num
param.
Thank you very much!
And another way - for small screen make grid: false,
and in other cases grid: true,
.
But running ionRangeSlider constructor many times can be a load on the browser if screen width changes dynamically.