3.2.0

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
July 1,
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)
July 3,

This topic is archived.

See also:


Back to support forum