Calendar:onSelect(date) event


This event is fired when the user has choosen a date on the Calendar.

Return value

The event returns no value.

Example

local ui = require "ui" -- creates a simple window local win = ui.Window("Calendar:onSelect() event sample", 320, 200) local calendar = ui.Calendar(win, 50, 20) -- Calendar:onCreate event to set calendar selected property function calendar:onSelect(date) ui.info("You have choosen the date : "..date.date) end win:show() -- update Calendar.text at each second while win.visible do ui.update() end