UI.Calendar
From GiderosMobile
Available since: Gideros 2023.1
Class: UI
Description
Creates Calendar widgets. The widget can be a Calendar or a DatePicker.
UI.Calendar.new()
Examples
A Calendar
local gui = UI.Calendar.new()
gui:setPosition(50, 50)
stage:addChild(gui)
--local myday = os.time()
local myday = os.time({year=2003, month=7, day=14, hour=8, min=10, sec=0,})
gui:setDate(myday)
local mydate = os.date("*t", gui:getDate())
print(mydate.month)
print(gui.month) -- shorter
A DatePicker
local gui = UI.DatePicker.new()
gui:setPosition(50, 50)
gui:setDate(os.time({year=2003, month=8, day=14, hour=8, min=10, sec=0,}))
print(gui:getDate())
local screen=UI.Screen.new() -- needed to add the calendar
screen:ui(gui)
- UI.Accordion
- UI.Animation
- UI.Bar
- UI.Behavior
- UI.Border
- UI.BreadCrumbs
- UI.Builder
- UI.Button
- UI.Calendar
- UI.Checkbox
- UI.Combobox
- UI.ImageText
- UI.Keyboard
- UI.Label
- UI.Panel
- UI.Progress
- UI.Slider
- UI.Spinner
- UI.Splitpane
- UI.TabbedPane
- UI.Table
- UI.TextField
- UI.TimePicker
- UI.Toolbox
- UI.Tree
- UI.Viewport
- UI.WeekSchedule