Last active
August 19, 2016 12:47
-
-
Save 321hendrik/fd7cd069bf2f00d5e7d88c62cd05fcd8 to your computer and use it in GitHub Desktop.
appcelerator ellipsized label
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 ellipsizeLabel = Ti.UI.createLabel({ | |
height: 20, | |
wordWrap: false, | |
horizontalWrap: false, | |
ellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END, | |
textAlign: 'center', | |
width: 50, | |
text: 'extralongtestnamefortesting' | |
}); | |
self.add(ellipsizeLabel); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment