Created
June 10, 2013 20:36
-
-
Save mschmulen/5752060 to your computer and use it in GitHub Desktop.
StrongLoop AppStore
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
function ApplicationTabGroup(Window) { | |
//Require our new windows | |
WindowAppListingNodeApps = require('ui/handheld/WindowAppListingNodeApps'); | |
WindowHome = require('ui/handheld/WindowAppHome'); | |
//create module instance | |
var self = Ti.UI.createTabGroup(); | |
//create app tabs | |
var win1 = new WindowHome(L('Home')); | |
var tab1 = Ti.UI.createTab({ | |
title: L('home'), | |
icon: '/images/KS_nav_views.png', | |
window: win1 | |
}); | |
win1.containingTab = tab1; | |
var win2 = new WindowAppListingNodeApps(L('Nodejs Apps')); | |
var tab2 = Ti.UI.createTab({ | |
title: L('Nodejs Apps'), | |
icon: '/images/KS_nav_views.png', | |
window: win2 | |
}); | |
win2.containingTab = tab2; | |
//add our windows to the tabGroup | |
self.addTab(tab1); | |
self.addTab(tab2); | |
return self; | |
}; | |
module.exports = ApplicationTabGroup; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment