Options
string
required
1 to 128 characters.
string
Up to 1024 characters.
UgIcon
Defaults to
Info for Alert and Question for Confirm.string
Defaults to the configured labels.
string
Confirm and Input.
boolean
Confirm only. A red confirm button.
UgDialogSize
default:"Medium"
integer
default:"60000"
ms.
0 waits forever.boolean
Replaces an open modal instead of returning
Busy.table[]
Input only. 1 to 32 fields.
Fields
Every field hasname (unique, 1 to 32 letters, digits or underscores), type (a UgLib.Enums.FieldType), and optional label, description, placeholder, default, required, disabled and icon.
options is 1 to 100 { value, label } with unique string or integer values.
- Empty optional fields are absent from
values. A required checkbox MUST be ticked. - A disabled field keeps its
default, whatever the page sends. - Lua checks every value against its field. An answer that fails returns
nil, Cancelled. - Wrong definitions raise at your line, and a
defaultMUST pass its own rules.
Example
client.lua