Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created February 26, 2013 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwhinnery/5040513 to your computer and use it in GitHub Desktop.
Save kwhinnery/5040513 to your computer and use it in GitHub Desktop.
var w = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var l = Ti.UI.createLabel({
text:'click me',
font: {
fontWeight:'bold',
fontSize:24
}
});
w.add(l);
l.addEventListener('click', function(e) {
l.text = 'clicked!'; // yep!
l.font.fontSize = 12; // nope.
});
w.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment