Section()
A titled group of questions the user can fold, such as "Advanced".
Constructor
Section(title: string)
Section(title: string, collapsed: boolean)
Parameters
| Parameters | Type | Description |
|---|---|---|
| title | string | The section's title |
| collapsed | boolean | Optional. true starts the section folded |
Methods
section:add(view): Section
Adds a question, text or container to the section, then add the section to the dialog or a page.
Example
local advanced = Section("Advanced", true)
advanced:add(Slider(6, "Delay (ms)", 0, 1000, 300):setStep(50))
Dialog:add(advanced)
Notes
- A folded section still counts: a question inside it that must be answered keeps OK grey. Give questions in folded sections a default.