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.


Functions

NumberPickerWidget:update ()
Update.
NumberPickerWidget:changeValue (value, step, max, min, wrap)
Change value.

Parameters:

  • value
  • step
  • max
  • min
  • wrap
NumberPickerWidget:getDaysInMonth (month, year)
Get days in month.

Parameters:

  • month
  • year
NumberPickerWidget:getValue ()
Get value.
generated by LDoc 1.5.0 Last updated 2024-12-19 07:44:17