Implement 'Click' event listener for "Done" button, which is within "More" tab.
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup({
allowUserCustomization: true
});
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1,
id:1
});
var label1 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 1',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win1.add(label1);
// 2
// create controls tab and root window
//
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 2',
window:win2,
id:2
});
var label2 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 2',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win2.add(label2);
// 3
// create controls tab and root window
//
var win3 = Titanium.UI.createWindow({
title:'Tab 3',
backgroundColor:'#fff'
});
var tab3 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 3',
window:win3,
id:3
});
var label3 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 3',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win3.add(label2);
// 4
// create controls tab and root window
//
var win4 = Titanium.UI.createWindow({
title:'Tab 4',
backgroundColor:'#fff'
});
var tab4 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 4',
window:win4,
id:4
});
var label4 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 4',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win4.add(label4);
// 5
// create controls tab and root window
//
var win5 = Titanium.UI.createWindow({
title:'Tab 5',
backgroundColor:'#AAA'
});
var tab5 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 5',
window:win5,
id:5
});
var label5 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 5',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win5.add(label5);
// 6
// create controls tab and root window
//
var win6 = Titanium.UI.createWindow({
title:'Tab 6',
backgroundColor:'#fff'
});
var tab6 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 6',
window:win6,
id:6
});
var label6 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 6',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win6.add(label6);
//
// add tabs - MANUALLY -
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.addTab(tab6);
tabGroup.addTab(tab4);
tabGroup.addTab(tab5);
tabGroup.addTab(tab3);
// open tab group
tabGroup.open();
function getCurrentOrders(){
for( i = 0; i <7; i++) {
Ti.API.info('>>>>> ' + tabGroup.tabs[i].id);
}
}
Closing ticket due to time passed and lack of progress in the past 5 years.