EditText()
Add EditText to dialog view
Constructor
EditText(id: number, hint: string)
EditText(id: number, hint: string, defaultValue: string)
Parameters
| Parameters | Type | Description |
|---|---|---|
| id | number | Unique identifier of the input text, the id is used in Dialog:getValueById() |
| hint | string | Custom hint text of Input Text |
| defaultValue | string | Optional default text shown when the dialog opens |
Notes
- The third parameter is optional
- If
defaultValueis provided, it is used as the initial value for the field - When a default value is provided, it takes priority over previously saved dialog state