Skip to content

Section

A Section organizes sidebar content by grouping related tabs together with optional disclosure.

Component preview

Summary

Properties

Property Type Description
Title string? The displayed section title.
Disclosure boolean? Whether the section's content should be hideable. Defaults to false.
Expanded boolean? Whether the section should be expanded by default. Defaults to true.

View all inherited from BaseComponent

View all inherited from Frame

Methods

View all inherited from Frame

Events

View all inherited from Frame

Types

type SectionProperties = Frame & {
    Title: string?,
    Disclosure: boolean?,
    Expanded: boolean?,
}

type Section = BaseComponent & Components & SectionProperties

Function Signature

function(self, properties: SectionProperties): Section

Example

local section = window:Section({
    Disclosure = true,
    Title = "Settings",
})

print(section:IsA("Frame")) --> true
print(section.ClassName) --> "Frame"
print(section.Type) --> "Section"