Skip to content

Instantly share code, notes, and snippets.

@meeech
Created July 16, 2012 21:35
Show Gist options
  • Save meeech/3125227 to your computer and use it in GitHub Desktop.
Save meeech/3125227 to your computer and use it in GitHub Desktop.
ellipsize
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