Skip to content

Commit

Permalink
Update TableColumn.php
Browse files Browse the repository at this point in the history
Allow a column to be rendered without a header to work with colspans
->column()
	->title(false)
->add()
  • Loading branch information
Nuno Chaves authored Feb 12, 2018
1 parent 30e13da commit c395c82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Table/TableColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ public function add()
*/
public function renderHeader()
{
if ($this->title === false) {
return "";
}

if (empty($this->title) && !is_callable($this->value)) {
if ($this->tableInstance->titlesMode == 'underscore') $this->title = $this->underscoreToTitle($this->value);
elseif ($this->tableInstance->titlesMode == 'camelcase') $this->title = $this->camelToTitle($this->value);
Expand Down

0 comments on commit c395c82

Please sign in to comment.