form.addExpansionPanel¶
since 1.4.0
Add an Expansion Panel to the current form.
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
text |
string | yes | the displayed text |
Returns¶
Nothing.
Examples¶
From the official Ethos documentation
panel = form.addExpansionPanel("Label")
panel:addLine("Label")
panel:open(false) -- by default the panel is open, let's keep it closed!
Used in¶
Real-world usage¶
Called 86 times across 5 open-source Ethos Lua projects. A few short excerpts: