Module ui.widget.numberpickerwidget
A customizable number picker.
Example:
local NumberPickerWidget = require("ui/widget/numberpickerwidget") local numberpicker = NumberPickerWidget:new{ -- for floating point (decimals), use something like "%.2f" precision = "%02d", value = 0, value_min = 0, value_max = 23, value_step = 1, value_hold_step = 4, wrap = true, }
Functions
NumberPickerWidget:update () | Update. |
NumberPickerWidget:changeValue (value, step, max, min, wrap) | Change value. |
NumberPickerWidget:getDaysInMonth (month, year) | Get days in month. |
NumberPickerWidget:getValue () | Get value. |