diff options
| -rw-r--r-- | src/Columns/Column.php | 5 | 
1 files changed, 4 insertions, 1 deletions
| 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<string, string> +     */      protected function getAttributes(Model $row): array      { -        return $this->tdAttributes ? ($this->tdAttributes)($row) : []; +        return $this->tdAttributesFn ? ($this->tdAttributesFn)($row) : [];      }      public function view(Model $row): HtmlString | 
