diff --git a/src/Datagrid.php b/src/Datagrid.php index 11e35fcd..6779d3b3 100644 --- a/src/Datagrid.php +++ b/src/Datagrid.php @@ -2600,9 +2600,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; }