Created
July 16, 2012 21:35
-
-
Save meeech/3125227 to your computer and use it in GitHub Desktop.
ellipsize
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 win1 = Titanium.UI.createWindow({ | |
backgroundColor:'#ccc', | |
exitOnClose:true, | |
title:'win1: Main Window' | |
}); | |
var label1 = Ti.UI.createLabel({ | |
top: 10, | |
backgroundColor:'black', | |
color:'white', | |
ellipsize:true, | |
wordwrap: false, | |
text:'This is some text to demonstrate the use of the ellipsize property of a label(click me!)', | |
height:20, | |
width:200 | |
}); | |
win1.add(label1); | |
var label2 = Ti.UI.createLabel({ | |
top: 80, | |
backgroundColor:'black', | |
color:'white', | |
ellipsize:true, | |
wordwrap: false, | |
text:'This is some text to demonstrate the use of the ellipsize property of a label(click me!)', | |
height:40, | |
width:200 | |
}); | |
win1.add(label2); | |
win1.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment