Skip to content

Instantly share code, notes, and snippets.

@mschmulen
Created June 10, 2013 20:36
Show Gist options
  • Save mschmulen/5752060 to your computer and use it in GitHub Desktop.
Save mschmulen/5752060 to your computer and use it in GitHub Desktop.
StrongLoop AppStore
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