diff --git a/src/Datagrid.php b/src/Datagrid.php index 42116c81..4dfe848a 100644 --- a/src/Datagrid.php +++ b/src/Datagrid.php @@ -2601,9 +2601,9 @@ public function canHideColumns(): bool * * @return static */ - public function setColumnsHideable(): self + public function setColumnsHideable(bool $columnsHideable = true): self { - $this->canHideColumns = true; + $this->canHideColumns = $columnsHideable; return $this; }