Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

centralPanel

Central panel that fills the area not consumed by the docked edge panels. Root-only — must be the body of a docked-shell layout, with edge panels (e.g. topPanel, bottomPanel, leftPanel, rightPanel) docked around it.

Exports

  • centralPanel(children: { any }?, opts: { [string]: any }?) -> WidgetNode — build a centralPanel widget node wrapping the given children.

Usage

local centralPanel = require("@builtin::modules.zui.widget.centralPanel")

centralPanel({
    heading("Body"),
    -- ...
})

Notes

  • Root-only — the renderer expects it at the top level of a screen, alongside any docked edge panels.
  • Passes opts straight through to the underlying node constructor; no widget-specific shortcuts.