Skip to content

ButtonItem

ButtonItem Properties

Property Type Required Default
OnPress complex Optional
Style string Optional
TextAlignment enum Optional "center"
Title string Optional
Visible boolean Optional true
_Name string Optional

OnPress

Action or rule to be performed when the event is triggered.

  • type: complex

OnPress Value

Any following options needs to be fulfilled.

Option 1

Option 2


Style

The string value is a style class name for Button.

  • type: string

TextAlignment

Text alignment of the button

  • type: enum
  • default: "center"

The value of this property must be equal to one of the known values below.

TextAlignment Known Values

Value Description
left
right
center

Title

Label to be displayed on the button. For Android, the text is always in upper case and cannot be styled to contain lower case letters.

  • type: string

Visible

Set the visibility of the button.

  • type: boolean
  • default: true

_Name

  • type: string