method cloneAndInsert

void cloneAndInsert(box child,int32 count,int32 index);

Argumente

Zurückgegebener Wert

This method will take a box and clone it a specified number of times. After the cloning process the new list of boxes are inserted into the DOM under this box at the given index.
var numRows = 10;
var rows = scene.getBoxById("myRows");
var item = scene.createBox("listItem");
if (rows && item)
{
    item.setAttribute("style", "rowContainer");
    rows.cloneAndInsert(item, numRows, 0);
}