Created
December 31, 2011 22:34
-
-
Save alexburner/1545542 to your computer and use it in GitHub Desktop.
testing weird titanium debug message
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
Ti.UI.setBackgroundColor( '#000' ); | |
var clearBtn = Ti.UI.createButton({ | |
title: 'Clear' | |
}); | |
var addBtn = Ti.UI.createButton({ | |
title: 'Add' | |
}); | |
var win = Ti.UI.createWindow({ | |
title: 'Root Win', | |
tabBarHidden: true, | |
leftNavButton: clearBtn, | |
rightNavButton: addBtn | |
}); | |
var tab = Ti.UI.createTab({ | |
title: 'Root Tab', | |
window: win | |
}); | |
var grp = Ti.UI.createTabGroup({ | |
tabs: [ tab ], | |
zIndex: 0 | |
}); | |
grp.open(); | |
var webview = Ti.UI.createWebView({ | |
top: 0, | |
left: 0, | |
right: 0, | |
bottom: 0 | |
}); | |
win.add(webview); | |
clearBtn.addEventListener('click', function () { | |
webview.html = '<html></<html>'; | |
}); | |
addBtn.addEventListener('click', function () { | |
webview.html = '<html><head></head><body>HELLO WORLD</body></html>'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment