Skip to content

form.addExpansionPanel

since 1.4.0

Add an Expansion Panel to the current form.

form.addExpansionPanel(text)

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:
local rpm_panel = form.addExpansionPanel("RPM")

src/wfsuite/widgets/dashboard/themes/kevd/configure.lua:47

panel = form.addExpansionPanel("EGT configure")

lua/frsky/JetWidget/main.lua:342

local radio = form.addExpansionPanel("Radio link")

src/rfsuite/widgets/dashboard/themes/bastion/configure.lua:154