Created
March 13, 2012 22:41
-
-
Save minhnc/2032301 to your computer and use it in GitHub Desktop.
Hide leftNavButton - back button
This file contains 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
var tg = Ti.UI.createTabGroup(); | |
var btn = Ti.UI.createButton({height: 40, title: 'Open new Window'}); | |
var w1 = Ti.UI.createWindow({backgroundColor: 'white'}); | |
w1.add(btn); | |
var t1 = Ti.UI.createTab({title: 'Tab', window: w1}); | |
tg.addTab(t1); | |
tg.open(); | |
btn.addEventListener('click', function(){ | |
var w = Ti.UI.createWindow({backgroundColor: 'red'}); | |
w.leftNavButton = Ti.UI.createView();// This will do the trick :) | |
t1.open(w); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment