Tab

Extends Composite

A container representing a single tab of a TabFolder widget.

Import this type with “const {Tab} = require('tabris');

Properties

badge

iOS

Type: string

A badge to attach to the tab.

image

iOSAndroid

Type: Image

An image to be displayed on the tab. Will not be shown on iOS if the TabFolder’s tabBarLocation is set to top

selectedImage

iOSAndroid

Type: Image

An image to be displayed on the currently active tab.

title

Type: string

The title to be displayed on the tab.

Events

appear

Fired when the tab will become visible, i.e. the selection of its TabFolder.

badgeChanged

Fired when the badge property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: string The new value of badge.

disappear

Fired when the tab is no longer visible, i.e. it no longer is the selection of its TabFolder.

imageChanged

Fired when the image property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: Image The new value of image.

selectedImageChanged

Fired when the selectedImage property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: Image The new value of selectedImage.

titleChanged

Fired when the title property has changed.

Event Parameters

  • target: this The widget the event was fired on.

  • value: string The new value of title.

See also