Log inGet started
Package

centralPanel.module

Newest version

This package holds more than this page lists. See all of its files in its world.

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.