diff --git a/CHANGELOG.md b/CHANGELOG.md index b4bfb57..92a23f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [12.5.0](https://github.com/yajra/laravel-datatables-html/compare/v12.4.0...v12.5.0) (2025-10-07) + + +### Features + +* **Builder:** add theadClass property getter ([a07184a](https://github.com/yajra/laravel-datatables-html/commit/a07184a943d9eac61c845aa6fd015603ee416673)) + # [12.4.0](https://github.com/yajra/laravel-datatables-html/compare/v12.3.1...v12.4.0) (2025-10-07) diff --git a/src/Html/Builder.php b/src/Html/Builder.php index fa2b434..9e27e92 100644 --- a/src/Html/Builder.php +++ b/src/Html/Builder.php @@ -185,7 +185,7 @@ public function table(array $attributes = [], bool $drawFooter = false, bool $dr ? ''.implode('', $this->compileTableSearchHeaders()).'' : ''; - $tableHtml .= 'theadClass ?? '').'>'; + $tableHtml .= 'getTheadClass() ?? '').'>'; $tableHtml .= ''.implode('', $th).''.$searchHtml.''; if ($drawFooter) { diff --git a/src/Html/HasTable.php b/src/Html/HasTable.php index aa6c4bb..b5a7912 100644 --- a/src/Html/HasTable.php +++ b/src/Html/HasTable.php @@ -100,6 +100,11 @@ public function setTableHeadClass(string $class): static return $this; } + public function getTheadClass(): ?string + { + return $this->theadClass; + } + /** * Remove class names from the "class" attribute of HTML table. *