:: Forum >>

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
Wednesday, July 11, 2007
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)
Friday, July 13, 2007

This topic is archived.


Back to support forum

Forum search