diff options
Diffstat (limited to 'src/Columns/Column.php')
| -rw-r--r-- | src/Columns/Column.php | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/src/Columns/Column.php b/src/Columns/Column.php index e4c50a9..f0a65fe 100644 --- a/src/Columns/Column.php +++ b/src/Columns/Column.php @@ -132,10 +132,13 @@ class Column {      protected function getContent(Model $row): string      { -        return $this->escape( -            $this->slotFn?->call($this, $row, $this) ?? -            $this->defaultSlot($row) -        ); +        $content = $this->slotFn === null ? $this->defaultSlot($ow) : ($this->slotFn)($row, $this); +        return $this->escape($content); +    } + +    protected function getAttributes(Model $row): array +    { +        return $this->tdAttributes !== null ? ($this->tdAttributes)($row) : [];      }      public function view(Model $row): HtmlString | 
