ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

Prevent user to set IntSlider value out of the limits pre-fixed

Open IkerAtienza opened this issue 4 years ago • 3 comments
trafficstars

I am currently developing a web tool, with Ipywidgets, and I have a question about the value of an IntSlider.

Is there any way to prevent the user from manually changing the value of an IntSlider by typing the desired value? I would like to prevent the user from freely inserting forbidden values. They should respect the limits of the slider.

What I have found is that whether the user selects a value below the minimum, that is the selected value. Similarly, when a value above the maximum is selected, the program automatically takes the max value of the slider. It is no posible to select any value outside the range fixed.

I would sincerely appreciate your help.

Thanks in advace to everyone!

IkerAtienza avatar Oct 11 '21 15:10 IkerAtienza