From dc4935ec339be6bd029a69ae7d2db16611eae07b Mon Sep 17 00:00:00 2001 From: Sam Light Date: Tue, 23 Sep 2025 22:32:45 +0100 Subject: Fixed bugs with Column tdAttributes --- src/Columns/Column.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Columns/Column.php b/src/Columns/Column.php index 3134ed7..e260472 100644 --- a/src/Columns/Column.php +++ b/src/Columns/Column.php @@ -136,9 +136,12 @@ class Column { return $this->escape($content); } + /** + * @return array + */ protected function getAttributes(Model $row): array { - return $this->tdAttributes ? ($this->tdAttributes)($row) : []; + return $this->tdAttributesFn ? ($this->tdAttributesFn)($row) : []; } public function view(Model $row): HtmlString -- cgit v1.2.3