show table name in perspective

This commit is contained in:
Jan Prochazka
2022-07-30 09:21:04 +02:00
parent 8472c8be79
commit 88f522084d
2 changed files with 10 additions and 2 deletions

View File

@@ -106,7 +106,10 @@ export class PerspectiveDisplay {
constructor(public root: PerspectiveTreeNode, rows: any[]) {
// dbg('source rows', rows);
this.fillColumns(root.childNodes, []);
this.fillColumns(root.childNodes, [root]);
if (this.columns.length > 0) {
this.columns[0].colSpanAtLevel[0] = this.columns.length;
}
this.columnLevelCount = _max(this.columns.map(x => x.parentNodes.length)) + 1;
const collectedRows = this.collectRows(rows, root.childNodes);
// dbg('collected rows', collectedRows);