Skip to content

CheckBoxView

The CheckBoxView control is used to display a box that can be on (checked) or off (unchecked).
The CheckBoxView inherits all the methods and properties from the base class View.

Constructor:

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

Properties:

  • text: string
    The text content displayed next to the check-box.
  • checked: boolean
    Specifies whether the check-box control is checked.
  • checkAlignment: Alignment
    Defines the horizontal alignment of the text within the view. See Alignment.
    Hint: Only Alignment.Left and Alignment.Right are supported.
  • wordWrap: boolean
    Controls whether the text wraps when it exceeds the width of the control. Default is false.