:: Forum >>

Multiple line in a label

Is it possible to display a text with multiple lines in a
label ?
i tried it with
lbl.setControlText( "Line 1\nLine2" );
lbl.setControlText( "Line 1<br>Line2" );
lbl.setControlText( "Line 1<br/>Line2" );

but it did not work.
Is there any trick ?
Thomas Henrichs
Tuesday, July 1, 2008
You should add lbl.setClass("text", "wrap");

var lbl = new AW.UI.Label;
lbl.setSize(100, 100);
lbl.setClass("text", "wrap");
lbl.setControlText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit.");
document.write(lbl);
Alex (ActiveWidgets)
Thursday, July 3, 2008

This topic is archived.


Back to support forum

Forum search