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
  • When a default value is provided, it takes priority over previously saved dialog state