Skip to content

TextEditView

The TextEditView control is used to edit a text.
The TextEditView inherits all the methods and properties from the base class View.

Constructor:

  • constructor(parent: View)
    Creates an instance of TextEditView control.
    • parent: the View containing the control itself.

Properties:

  • text: string
    The text content to be edited in the view.
  • mask: string
    The mask can limit what can be entered in TextEditView. Here you can find syntax explained.
  • textAlignment: Alignment
    Defines the horizontal alignment of the text within the view. See Alignment.
    Hint: Only Alignment.Left and Alignment.Right are supported.
  • hint: string
    The text thet is displayed when TextEditView is empty.
  • readOnly: boolean
    Indicates whether the control is in read-only mode. Default is false.
  • passwordChar: string
    The character that is used to hide the content of TextEditView. If set TextEditView serves as a password box where you cannot see the text you are typing. It's usually set to *. Default is ''.