Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-42] API - Titanium.UI.createTabbedBar

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:50:12.000+0000
Affected Version/sn/a
Fix Version/sGA - M1
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeReggie Seagraves
Created2011-04-15T02:22:53.000+0000
Updated2011-04-17T01:50:12.000+0000

Description

Description

The purpose of this API is to create a tabbed bar native control.

Example


var tabbedBar = Titanium.UI.createTabbedBar({id:'foo', labels:[button1, button2], color:'#336699'});

Note: a tabbedBar can be inserted on the toolbar or navbar like a normal button

API Arguments

id : optional. HTML element id for where the button bar will be placed if placed in webview

labels : array of button title strings

activeIndex : optional. default is 0. the index of the active tab

images : array of button images

color : hex web color for buttons (e.g., #336699)

backgroundColor : optional. background color of button

Comments

  1. Jeff Haynie 2011-04-15

    resolved in 0.5

JSON Source