Panel.childs readonly


Get a list of the Panel's widgets, as a table.
Each items in the list is a widget who's parent is the current Panel.

Example

Example

--! luart-extensions import ui --- create a centered Window local win = ui.Window("Panel.childs example", 460, 320) local panel = ui.Panel(win, 0, 0, 280, 180) panel.border = true panel:center() -- create 5 labels on this Window for i = 1, 5 do ui.Label(panel, " Label"..i.." ", 120, (i+24)*i).bgcolor = 0x007acc end async(function() while true do for widget in each(panel.childs) do widget.bgcolor = 0xFF0000 sleep(800) widget.bgcolor = 0x007acc end end end) await win:showasync()