Skip to content

Commit d52551a

Browse files
authored
Merge pull request #263 from ejgandelaberon/thead-class-getter
feat: Add $theadClass property getter
2 parents 381db64 + 3f3fb66 commit d52551a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Html/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function table(array $attributes = [], bool $drawFooter = false, bool $dr
185185
? '<tr class="search-filter">'.implode('', $this->compileTableSearchHeaders()).'</tr>'
186186
: '';
187187

188-
$tableHtml .= '<thead'.($this->theadClass ?? '').'>';
188+
$tableHtml .= '<thead'.($this->getTheadClass() ?? '').'>';
189189
$tableHtml .= '<tr>'.implode('', $th).'</tr>'.$searchHtml.'</thead>';
190190

191191
if ($drawFooter) {

src/Html/HasTable.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ public function setTableHeadClass(string $class): static
100100
return $this;
101101
}
102102

103+
public function getTheadClass(): ?string
104+
{
105+
return $this->theadClass;
106+
}
107+
103108
/**
104109
* Remove class names from the "class" attribute of HTML table.
105110
*

0 commit comments

Comments
 (0)