Skip to main content

EditText()

Add EditText to dialog view

Constructor​

EditText(id: number, hint: string)
EditText(id: number, hint: string, defaultValue: string)

Parameters​

ParametersTypeDescription
idnumberUnique identifier of the input text, the id is used in Dialog:getValueById()
hintstringCustom hint text of Input Text
defaultValuestringOptional default text shown when the dialog opens

Notes​

  • The third parameter is optional
  • If defaultValue is 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() and setHelp()