Skip to content

Commit c395c82

Browse files
author
Nuno Chaves
authored
Update TableColumn.php
Allow a column to be rendered without a header to work with colspans ->column() ->title(false) ->add()
1 parent 30e13da commit c395c82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Table/TableColumn.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ public function add()
115115
*/
116116
public function renderHeader()
117117
{
118+
if ($this->title === false) {
119+
return "";
120+
}
121+
118122
if (empty($this->title) && !is_callable($this->value)) {
119123
if ($this->tableInstance->titlesMode == 'underscore') $this->title = $this->underscoreToTitle($this->value);
120124
elseif ($this->tableInstance->titlesMode == 'camelcase') $this->title = $this->camelToTitle($this->value);

0 commit comments

Comments
 (0)