:: Forum >> Version 2 >>

Multiple line in a label

More information on this topic is available in the documentation section: /aw.ui.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

Post a reply:

Text:
Name:

Back to /aw.ui.label/

Documentation:

Forum search