Change slider or widget "range" with setProperty?

Just wondering if there’s a way to change the range of a widget with the setProperty function? Or if there’s any other way to do it with code?

I’d like the slider range to change when my user selects Celsius / Fahrenheit with a button.

I know how to change the range within the app.

In code you use max and min as per the docs.

1 Like

Yes, you can via min/max properties -

Thank you! Whenever I think I’ve actually looked through the docs enough it’s right there in front of my face.