child iterator
This commit is contained in:
parent
fd835a4d87
commit
d9c05ba321
10
table.ts
10
table.ts
@ -1,7 +1,9 @@
|
||||
export class Sum
|
||||
{
|
||||
ColumnIndex: number;
|
||||
|
||||
Original: number;
|
||||
Adjustment: number;
|
||||
FromParents: number;
|
||||
FromChildren: number;
|
||||
FromOutside: number;
|
||||
@ -72,6 +74,14 @@ export class Table
|
||||
this.Parent.ItrParents(inFunction);
|
||||
}
|
||||
}
|
||||
ItrChildren(inFunction: Function)
|
||||
{
|
||||
this.Children.forEach( (inChild: Table) =>
|
||||
{
|
||||
inFunction(inChild);
|
||||
inChild.ItrChildren(inFunction);
|
||||
});
|
||||
}
|
||||
ItrLeaves(inFunction:Function)
|
||||
{
|
||||
if(this.Children.length == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user