don't render hidden columns in table panel (#12911)

This commit is contained in:
Marcus Efraimsson 2018-08-14 08:50:22 +02:00 committed by Torkel Ödegaard
parent 277a696fa5
commit 36e808834d
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<table class="table-panel-table">
<thead>
<tr>
<th ng-repeat="col in ctrl.table.columns" ng-hide="col.hidden">
<th ng-repeat="col in ctrl.table.columns" ng-if="!col.hidden">
<div class="table-panel-table-header-inner pointer" ng-click="ctrl.toggleColumnSort(col, $index)">
{{col.title}}
<span class="table-panel-table-header-controls" ng-if="col.sort">

View File

@ -238,6 +238,10 @@ export class TableRenderer {
column.hidden = false;
}
if (column.hidden === true) {
return '';
}
if (column.style && column.style.preserveFormat) {
cellClasses.push('table-panel-cell-pre');
}