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 and value

setRange(start, end)

Sets the minimum and maximum 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