()
| 70 | } |
| 71 | |
| 72 | getMainColumns() { |
| 73 | return this._cache('mainColumns', () => { |
| 74 | const columns = this.getVisibleColumns(); |
| 75 | if (!this.hasFrozenColumns()) return columns; |
| 76 | |
| 77 | const mainColumns = []; |
| 78 | this.getLeftFrozenColumns().forEach(column => { |
| 79 | //columns placeholder for the fixed table above them |
| 80 | mainColumns.push({ ...column, [ColumnManager.PlaceholderKey]: true }); |
| 81 | }); |
| 82 | this.getVisibleColumns().forEach(column => { |
| 83 | if (!column.frozen) mainColumns.push(column); |
| 84 | }); |
| 85 | this.getRightFrozenColumns().forEach(column => { |
| 86 | mainColumns.push({ ...column, [ColumnManager.PlaceholderKey]: true }); |
| 87 | }); |
| 88 | |
| 89 | return mainColumns; |
| 90 | }); |
| 91 | } |
| 92 | |
| 93 | getLeftFrozenColumns() { |
| 94 | return this._cache('leftFrozenColumns', () => { |
no test coverage detected