Panel.parent readonly


Get the parent widget that owns the Panel.

Example

--! luart-extensions import ui -- create a fixed Panel local win = ui.Window("Panel.constructor() sample", "fixed", 320, 200) -- create a Panel at position at the top left corner, sized 100x100 pixels local panel = ui.Panel(win, 0, 0, 100, 100) panel.border = true panel:center() win:status("Panel's parent is "..tostring(panel.parent)) await win:showasync()