Widget “Tab”

Extends Composite

A container representing a single tab of a TabFolder widget.

You can import this type like this:

import {Tab} from 'tabris';

Or reference it directly form anywhere as “tabris.Tab”.

Methods

insertBefore(widget)

Parameters:

Returns: this

Inserts this widget directly before the given Tab.

Properties

badge

< span class = 'ios-tag' title = 'supported on iOS' > iOS < /span>

Type: string

A badge to attach to the tab.

image

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

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