Hi All...
app.js
Titanium.UI.setBackgroundColor('#000'); var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ title:'Tab 1', url:"/Company.js", //backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Company', window:win1 }); tabGroup.addTab(tab1); tabGroup.open();Here is the Company.js file
Company.js
var Company = Ti.UI.currentWindow; Company.backgroundColor = "white"; var button = Ti.UI.createButton({ height:"10%", title:"New window" }) Company.add(button); button.addEventListener("click", function(e){ var presentation = Ti.UI.createWindow({ url:'presentation.js', tabBarHidden:"false", //to show the tabBar in presentation window fullscreen:false, //backgroundColor:'#FFEFD5', title:"Presentation of the Company" }); Ti.UI.currentTab.open(presentation, {animated:true}); }) Company.open();presentation.js
var presentation = Ti.UI.currentWindow; presentation.backgroundColor = "white"; presentation.open();The overall What I want is the tabBar to be shown in Presentation window. But the tabBar is not shown.
Please help.
1 Answer
Hello Suresh,
Please remove company.open(); from your Company.js and also remove presentation.open(); from presentation.js...
Clean full build and run it again...
Your Answer
Think you can help? Login to answer this question!