Skip to content

Instantly share code, notes, and snippets.

@DirleiDionisio
Created October 26, 2012 12:00
Show Gist options
  • Save DirleiDionisio/3958393 to your computer and use it in GitHub Desktop.
Save DirleiDionisio/3958393 to your computer and use it in GitHub Desktop.
Window flow with TabGroup
var tg = Ti.UI.createTabGroup();
var w1 = Ti.UI.createWindow({
backgroundColor: 'red',
title: 'red',
tabBarHidden: true
});
var t1 = Ti.UI.createTab({
window: w1
});
tg.addTab(t1);
var w2 = Ti.UI.createWindow({
backgroundColor: 'yellow',
title: 'yellow',
tabBarHidden: true
});
w1.addEventListener('click', function () {
t1.open(w2);
});
var w3 = Ti.UI.createWindow({
backgroundColor: 'blue',
title: 'blue',
tabBarHidden: true
});
w2.addEventListener('click', function () {
t1.open(w3);
});
tg.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment