summaryrefslogtreecommitdiff
path: root/src/Columns
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-08-26 21:40:53 +0100
committerSam Light <samlight1994@gmail.com>2025-08-26 21:40:53 +0100
commit38a3aa1ad773eaaa0b9c899e0b793b6c1fa01bf0 (patch)
tree8ddb8241091a50adff189876e9764d5640732e95 /src/Columns
parent964619269747ded1dfed70e78c990e51e1b40961 (diff)
Bug fix on Column
Diffstat (limited to 'src/Columns')
-rw-r--r--src/Columns/Column.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Columns/Column.php b/src/Columns/Column.php
index f0a65fe..3134ed7 100644
--- a/src/Columns/Column.php
+++ b/src/Columns/Column.php
@@ -132,13 +132,13 @@ class Column {
protected function getContent(Model $row): string
{
- $content = $this->slotFn === null ? $this->defaultSlot($ow) : ($this->slotFn)($row, $this);
+ $content = $this->slotFn === null ? $this->defaultSlot($row) : ($this->slotFn)($row, $this);
return $this->escape($content);
}
protected function getAttributes(Model $row): array
{
- return $this->tdAttributes !== null ? ($this->tdAttributes)($row) : [];
+ return $this->tdAttributes ? ($this->tdAttributes)($row) : [];
}
public function view(Model $row): HtmlString