Skip to content

TabItem

TabItem Properties

Property Type Required Default
Caption string Optional
Image Image Optional
OnPress ActionOrRule Optional
PageToOpen Page Optional
ResetIfPressedWhenActive boolean Optional false
_Name string Required
_Type const Required

Caption

  • type: string

Image

Image will display together with Caption if specified. Specific for iOS, an overlay mask would be applied on top of the image to distinguish active and inactive tab items. The overlay mask only works well on image with transparent background, otherwise the image would be displayed as monotone square icon.


OnPress

Action/Rule to be triggered when the tab item is pressed.


PageToOpen

Page to be rendered as the content of the tab item, references a .page file.


ResetIfPressedWhenActive

Flag to determine whether need to reset to original tab page if the tab item is pressed again when it is the selected tab item.

  • type: boolean
  • default: false

_Name

  • type: string

_Type

  • type: const

The value of this property must be equal to:

"Control.Type.TabItem"