method insertContentChildAt

bool insertContentChildAt(box child,int32 index,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.insertContentChildAt(bx, 2, "default");
}