Skip to content

Commit

Permalink
Temporary solution for pseudo header values
Browse files Browse the repository at this point in the history
  • Loading branch information
JPustkuchen committed Jul 2, 2021
1 parent ba419bf commit f3371d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Elements/TableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ public static function createFromArray(array $cellsArray) {
foreach ($cellsArray as $key => $cell) {
if (!is_array($cell)) {
// No array, use value as value:
$cells[] = new TableCell($key, $cell);
$tableCell = new TableCell($key, $cell);
// TODO - Dirty workarund to hide empty (null) values and headers
if($cell === null){
$cell->addClass('hidden');
$tableCell->addClass('hidden');
}
$cells[] = $tableCell;
} else {
// Array value, use by keys:
$value = $cell['#value'];
Expand Down

0 comments on commit f3371d8

Please sign in to comment.