Spinner
A widget that allows users to input integer values within a specified range. It provides a convenient interface for users to select numbers by either typing directly into the box or by using up and down arrow buttons to increase or decrease the value
local dock = Spinner()
Properties
- setOnValueChange(callback)
The function executed when the value changes
- Params:
self
andvalue
- setRange(start, end)
Sets the
minimum
andmaximum
values for the widget
- setValue(value)
Sets the value displayed on the widget
- getValue()
Returns the current value
- setPrefix(prefix)
Set the prefix of the spinner widget
- setSuffix(suffix)
Set the suffix of the spinner widget