Calendar.parent readonly property


Get the parent object that owns the Calendar.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Calendar.parent sample", 320, 230) local calendar = ui.Calendar(win, 50, 50) local button = ui.Button(win, "Show Calendar parent", 100, 10) function button:onClick() ui.info("Calendar's parent is "..tostring(calendar.parent)) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible