This is a wrapper for ui.Slider() that shows a label above the slider thumb with the current value (it slides along). Here are some features this provides:
- The displayed label is editable (it is a
textfield) and entering a new number updates the slider position - Has a custom
valueattribute based on a user-setmax_valargument. - Setting 'max_val' will create a
SliderWithLabel.valuebased onslider.value*max_val. It will return a rounded integer. A normal slider has a value between 0 and 1.0.max_valgives convenience. Default is100. - can set the
valuefor the default display value. Default is50(Half) - can set the
tint_colorfor the bar. Default is0.7so there is no color. - set the frame for SliderWithLabel works well.
- remember that this needs a height of 60!! It's a lot, I know. But don't worry about it!! Make everything else in your view smaller!!
- changed `delegate is gone in favour of being able to assign an action.
- added can now style the
labelwith the usual style attributes (background_color etc)