Open tartakxg opened 2 years ago
$("#example_id").ionRangeSlider( { type: "integer", min: 1, max: 4, from: 1, to: 4, postfix: "", hide_min_max: true, grid: true, } );
Grid has 1-2-3-3-4 and wrong steps: https://jsfiddle.net/tartakx/a0rygw7x/
Yes, in some cases automatic grid could have some problems. You could fix it by using grid_snap: true parameter.
grid_snap: true
$("#example_id").ionRangeSlider( { type: "integer", min: 1, max: 4, from: 1, to: 4, postfix: "", hide_min_max: true, grid: true, } );
Grid has 1-2-3-3-4 and wrong steps: https://jsfiddle.net/tartakx/a0rygw7x/