How can I trucate a label control?
I set it's with to 100% in a conatainer of about 112 pixels and what it does in Flex 4 is jump on the next row.
How can I make it trim and add "..." at the end based on the container witdh, please?
set linebreak to explicit and maxDisplayedLines to 1
To disable this automatic wrapping, set the
lineBreak style to
"explicit". Then lines are broken only where the
text contains an explicit line break, and the ends of lines extending past the right edge is clipped.
If you have more text than you have room to display it, Label can truncate the text for you. Truncating text means replacing excess text with a truncation indicator such as "...". See the inherited properties
Excellent, thank you!