You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,7 +71,7 @@ Disable the slider to prevent user interaction.
70
71
Range Slider has implicit values for `min` and `max`—`0` and `100`, respectively. You may specify new values for those using the `min` and `max` attributes.
@@ -79,7 +80,7 @@ Range Slider has implicit values for `min` and `max`—`0` and `100`, respective
79
80
Range Slider inputs automatically "snap" to whole numbers. To modify this behavior, set a `step` value. In the example below, we increase the number of steps by specifying `step="0.25"`.
The `data-coreui-track` option allows you to customize how the slider's track is displayed. By default, the `data-coreui-track` option is set to `'fill'` enabling dynamic filling of the track based on the slider's current value(s). This means the filled portion of the track will adjust automatically as the slider handle(s) move, offering a responsive visual representation of the selected range.
142
+
143
+
### Disable filling
144
+
145
+
If you set `data-coreui-track` to `false`, the slider's track will not display any fill. Only the default track background will be visible, which can be useful for minimalist designs or when you use more then two handles.
@@ -191,6 +206,7 @@ const rangeSlider = new RangeSlider(rangeSliderElement, {
191
206
|`step`| number, string |`1`| Specifies the increment step for slider values. |
192
207
|`tooltips`| boolean |`true`| Enables or disables tooltips that display current slider values. |
193
208
|`tooltipsFormat`| function, null |`null`| Provides a custom formatting function for tooltip values. |
209
+
|`track`| boolean, 'fill' |`'fill'`| Controls the visual representation of the slider's track. When set to `'fill'`, the track is dynamically filled based on the slider's value(s). Setting it to `false` disables the filled track. |
194
210
|`value`| array, number |`0`| Sets the initial value(s) of the slider. |
195
211
|`vertical`| boolean |`false`| Rotates the slider to a vertical orientation. |
0 commit comments