TabFolder

A widget that can switch between tabs. Includes Widget API

Methods

append(child, child*)

Parameters:

Returns: TabFolder

Adds the given tabs in the given order to the TabFolder

Properties

paging

Type: boolean

Enables swiping through tabs.

selection

Type: Tab

tabBarLocation

Type: string, supported values: top, bottom, auto, default: auto

The placement of the tab titles. When set to "auto", the position is platform dependent.
This property can only be set in the tabris.create method. It cannot be changed after widget creation.

Events

“change:selection” (widget, selection, options)

Parameters:

  • widget: TabFolder
  • selection: Tab, the new value of selection.
  • options: Object

Fired when the selection property changes.

“select” (widget, selection, options)

Parameters:

  • widget: TabFolder
  • selection: Tab, the new value of selection.
  • options: Object

Fired when the selection property changes by user interaction.

See also