XULTreeViewRecord.appendChildren Member
add a list of children to the end of the child list for this record. faster than multiple appendChild() calls.
Syntax
object.appendChildren(children);
Arguments
Argument | Summary |
---|---|
children |
Returns
Remarks
See Also
Source Code
function xtvr_appchild (children)
{
var idx = this.childData.length;
var delta = 0;
var len = children.length;
for (var i = 0; i < len; ++i)
{
var child = children[i];
child.isHidden = false;
child.parentRecord = this;
this.childData.push(child);
delta += child.visualFootprint;
}
if ("isContainerOpen" in this && this.isContainerOpen)
{
if (this.calculateVisualRow() >= 0)
{
this.reSort(true); /* reSort, don't invalidate. we're going to do
* that in the onVisualFootprintChanged call. */
}
this.onVisualFootprintChanged(this.childData[0].calculateVisualRow(),
delta);
}
}