Skip to content

Commit 1479bea

Browse files
authored
Merge pull request #2712 from ibdafna/slider_test
[WIP] noUiSlider implementation
2 parents 4b485b1 + 18eba86 commit 1479bea

File tree

9 files changed

+780
-323
lines changed

9 files changed

+780
-323
lines changed

ipywidgets/widgets/widget_float.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class FloatSlider(_BoundedFloat):
166166
"""
167167
_view_name = Unicode('FloatSliderView').tag(sync=True)
168168
_model_name = Unicode('FloatSliderModel').tag(sync=True)
169-
step = CFloat(0.1, help="Minimum step to increment the value").tag(sync=True)
169+
step = CFloat(0.1, allow_none=True, help="Minimum step to increment the value").tag(sync=True)
170170
orientation = CaselessStrEnum(values=['horizontal', 'vertical'],
171171
default_value='horizontal', help="Vertical or horizontal.").tag(sync=True)
172172
readout = Bool(True, help="Display the current value of the slider next to it.").tag(sync=True)
@@ -207,7 +207,7 @@ class FloatLogSlider(_BoundedLogFloat):
207207
"""
208208
_view_name = Unicode('FloatLogSliderView').tag(sync=True)
209209
_model_name = Unicode('FloatLogSliderModel').tag(sync=True)
210-
step = CFloat(0.1, help="Minimum step in the exponent to increment the value").tag(sync=True)
210+
step = CFloat(0.1, allow_none=True, help="Minimum step in the exponent to increment the value").tag(sync=True)
211211
orientation = CaselessStrEnum(values=['horizontal', 'vertical'],
212212
default_value='horizontal', help="Vertical or horizontal.").tag(sync=True)
213213
readout = Bool(True, help="Display the current value of the slider next to it.").tag(sync=True)
@@ -350,7 +350,7 @@ class FloatRangeSlider(_BoundedFloatRange):
350350
"""
351351
_view_name = Unicode('FloatRangeSliderView').tag(sync=True)
352352
_model_name = Unicode('FloatRangeSliderModel').tag(sync=True)
353-
step = CFloat(0.1, help="Minimum step to increment the value").tag(sync=True)
353+
step = CFloat(0.1, allow_none=True, help="Minimum step to increment the value").tag(sync=True)
354354
orientation = CaselessStrEnum(values=['horizontal', 'vertical'],
355355
default_value='horizontal', help="Vertical or horizontal.").tag(sync=True)
356356
readout = Bool(True, help="Display the current value of the slider next to it.").tag(sync=True)

0 commit comments

Comments
 (0)