Skip to main content
Client Through ug-lib.
All MUST run in a thread.

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.
Title, message, field labels and descriptions take the markup.

Fields

Every field has name (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 default MUST pass its own rules.

Example

client.lua