Radiobutton.parent readonly property


Get the parent widget that owns the Radiobutton.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Radiobutton.parent sample", 320, 200) -- create a Tab with one page local tab = ui.Tab(win, {"Page 1"}) -- create a radiobutton on the first page local radiobutton = ui.Radiobutton(tab.items[1], "Show Radiobutton parent", 90, 70) function radiobutton:onClick() ui.info("Radiobutton's parent is a "..type(radiobutton.parent)) end tab.align = "all" win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible