[TIMOB-42] API - Titanium.UI.createTabbedBar
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:50:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | GA - M1 |
| Components | iOS |
| Labels | n/a |
| Reporter | Nolan Wright |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:22:53.000+0000 |
| Updated | 2011-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
resolved in 0.5