DisclosureGroup
Shows a header that expands or collapses its child content.
<DisclosureGroup ... />
Overview
This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.
Topics
Properties
| Name | Type | Required | Description |
|---|---|---|---|
alignment |
value | optional | Component-specific setting passed to the native control. |
expanded |
boolean | optional | Component-specific setting passed to the native control. |
header |
table | optional | Section or group heading. |
indicatorWidth |
number | optional | Width of a symbol column the disclosure triangle is centered in; the content then starts at the label's edge. |
indicatorSpacing |
number | optional | Gap between the symbol column and the label, with indicatorWidth. |
label |
value | optional | Component-specific setting passed to the native control. |
spacing |
number | optional | Component-specific setting passed to the native control. |
Example
<DisclosureGroup />
Platform notes
- AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.
Source: lua/embedded/AppKit.lua:695 (AppKit.DisclosureGroup)