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,
    update_callback = function() end,
}

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.4.6 Last updated 2019-09-14 22:30:13