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 - The default is only the starting answer: once the user has answered, their saved answer is used on every later run
- Like every dialog item, it has
showWhen(),hideWhen()andsetHelp()