method addContentChild

bool addContentChild(box child,string type);

Argumente

Zurückgegebener Wert

This method will add a box to this box's content section. A type can be specified to determine how the new child box relates to other boxes. An available list of types and descriptions is found below.

var cont = scene.getBoxById("theTabs");
if (cont)
{
    var bx = scene.createBox("tab");
    // ... setup tab attributes here ...
    cont.addContentChild(bx);
}