Sections
Group controls using a lightweight ownership and layout boundary.
Create a section#
local section = page:CreateSection({Title = "Preferences"})
section:CreateToggle({Name = "Enabled", Default = false})
section:CreateSlider({Name = "Volume", Min = 0, Max = 100, Step = 5, Default = 40})| Option | Type | Default |
|---|---|---|
| Title | string | Required; nonempty |
Available constructors#
A Section exposes CreateButton, CreateToggle, CreateTextInput, CreateSlider, CreateDropdown, CreateKeybind and CreateColorPicker. Multi selection uses CreateDropdown({Multi = true}); there is no CreateMultiDropdown constructor.
Layout#
The section lays out native rows. Name is the primary label; Description adds secondary text and changes the row height. Use short labels and explanations. A Section is not a game controller, a column layout builder or a custom card component.
Destroy just this section#
section:Destroy() -- removes its controls and their subscriptionsThe Page remains alive. The owning Window still handles its other pages, configuration manager and overlays. Destroy is idempotent. Internal Reflow methods are implementation details rather than a supported extension API.