XULTreeViewRecord.open Member

open this record, exposing it's children. DONT call this method if the record has no children.

Syntax

object.open();

Returns

Remarks

See Also

Source Code

function xtvr_open ()
{
if (this.isContainerOpen)
return;
if ("onPreOpen" in this)
this.onPreOpen();
this.isContainerOpen = true;
var delta = 0;
for (var i = 0; i < this.childData.length; ++i)
{
if (!this.childData[i].isHidden)
delta += this.childData[i].visualFootprint;
}
/* this reSort should only happen if the sort column changed */
this.reSort(true);
this.visualFootprint += delta;
if ("parentRecord" in this)
{
this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow(),
0);
this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow() +
1, delta);
}
}