<div [ngStyle]="gridConfig()" class="table">
    @for (column of _columns(); track column.label) {
        <div [ngClass]="{ hide: !!column.hide }" class="col cell">
            <label>{{ column.label }}</label>
        </div>
    }
    @for (row of _data(); track $index) {
        @for (cell of row; track cell.label) {
            <div [ngClass]="{ background: _data().indexOf(row) % 2 === 0, hide: !!cell.hide, bold: cell.bold }" class="cell">
                {{ cell.label }}
            </div>
        }
    }
</div>
