This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Android doesn't have a tabbedBar like iOS does, so this was my attempt at duplicating the functionality and API | |
* http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.ButtonBar | |
* @param {Dictionary<Titanium.UI.Button>} params | |
*/ | |
function createTabbedBar(params) { | |
if (!params.labels || params.labels.length === 0) { | |
throw "You must specify button titles in a 'labels' member on the passed in object"; | |
} |