2019-09-07 12:07:48 -04:00
|
|
|
import {Table} from './table.ts';
|
2019-09-07 13:05:47 -04:00
|
|
|
var table;
|
|
|
|
var leaves;
|
|
|
|
var rows;
|
2019-09-07 12:07:48 -04:00
|
|
|
|
2019-09-07 13:05:47 -04:00
|
|
|
rows = [
|
2019-09-07 12:07:48 -04:00
|
|
|
["a","1"],
|
|
|
|
["b","2"],
|
|
|
|
["a","3"],
|
|
|
|
["b","1"],
|
|
|
|
["a","2"],
|
|
|
|
["b","3"],
|
2019-09-07 13:05:47 -04:00
|
|
|
];
|
2019-09-07 12:07:48 -04:00
|
|
|
|
2019-09-10 21:12:52 -04:00
|
|
|
table = new Table("Root", rows, [1]);
|
2019-09-07 13:05:47 -04:00
|
|
|
table.PivotTree([0, 1]);
|
2019-09-10 21:12:52 -04:00
|
|
|
table.ItrLeaves( inLeaf => console.log(inLeaf) );
|