Introduction to modern Slider control
Slider control has been around in Power Apps ever since Power Apps came into existence. So although it isn't a new control, the modern version has some minor differences (read: additions and some subtractions) when compared to the classic slider control. This will probably be one of the shorter modern control blog post as the differences between the classic and modern slider are very minimal.
Renamed Properties
- Size - This used to be called HandleSize (a numeric value). The new Size property has 2 options:
- 'Slider.Size'.Medium (default)
-
'Slider.Size'.Small
- Value - This used to called Default. It indicates the default value of the slider control.
Some of the properties to style this control are gone like RailFill, ValueFill, HandleFill. This might seem a bit crippling to some makers, but trust me, losing some of these properties has been a blessing for me. Lack of these properties helps ensure that the controls look neat and clean. Here is a side by side demo of modern vs classic slider control:
Using modern Slider control
The one property that some of the modern controls have lost in comparison to their classic versions is the Reset property. I do miss it at times. I used that property to reset controls to their default values using a variable. Now that the Reset property isn't there anymore, you can still reset controls by using the Reset function. To learn more about the Reset function, click here.
Stay tuned for the remaining modern controls!
To read the official documentation of modern controls, click here.