Calendar:show()method
Show and activate the Calendar (events can now be fired).
Return value
This function returns no value.Example
--! luart-extensions
import ui
-- create a simple Window
local win = ui.Window("Calendar:show() sample", 320, 200)
local calendar = ui.Calendar(win, 50, 20)
-- Spawn a Task to hide/show calendar every 500ms
async(function()
while true do
calendar:show()
sleep(500)
calendar:hide()
sleep(500)
end
end)
await win:showasync()