From 776e10ff05270f54b3d4ae968281b928a9fc8c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20Vacul=C3=ADk?= Date: Sat, 22 Jun 2024 21:32:08 +0200 Subject: [PATCH] Datagrid: setColumnsHideable Able to pass variable to `setColumnsHideable` --- src/Datagrid.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }