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 14cde7f commit 286877c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Elements/TableCell.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public function setValue($value) {
* @return array
*/
public function toArray() {
// TODO - make class changable from outside:
if($this->hidden){
// Add class 'hidden' if this is hidden:
$this->getAttributes()->addClass('hidden');
}

$result = [
'key' => $this->key,
'value' => $this->value,
Expand Down

0 comments on commit 286877c

Please sign in to comment.