DoubleSpinner

A specialized input box designed for entering floating-point (decimal) numbers. It allows users to adjust and input numeric values with decimal precision using a spinning mechanism. You can set a range for the values, define the step size for increments or decrements, and control the number of decimal places displayed, making it ideal for precise numeric input.

local dock = DoubleSpinner()

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