3.2.0

html <BR> equivalent NEWBIE

Hi, I would like to add a space (carriage return) between the radio button and the input field.

CODE:
var interfaceGroup = new AW.UI.Group;
interfaceGroup.setControlText("Interface");
interfaceGroup.setSize(200,200);
var interfaceRadio = new AW.UI.Radio;
interfaceRadio.setItemText(["eth2","eth3","eth4","eth5"]);
interfaceRadio.setItemCount(4);
var ip1Input = new AW.UI.Input;
interfaceGroup.setContent("radio",interfaceRadio);
interfaceGroup.setContent("ip1", ip1Input);
document.write(interfaceGroup);

Any idea ?
Normand Bedard
July 11,
You can add any html string using setContent() method,

obj.setContent("radio",interfaceRadio);
obj.setContent("break", "<br>");
obj.setContent("ip1", ip1Input);

However, in the current version the controls will not work inside AW.UI.Group class (bug). The AW.UI.Group class is only intended to draw a rounded rectangle border, but it is not intended to be a 'container', i.e. you should not put other elements inside AW.UI.Group class, but have them 'float' on top using absolute positioning.
Alex (ActiveWidgets)
July 13,

This topic is archived.

See also:


Back to support forum