Skip to content

Commit

Permalink
Datagrid: setColumnsHideable
Browse files Browse the repository at this point in the history
Able to pass variable to `setColumnsHideable`
  • Loading branch information
radimvaculik authored and f3l1x committed Aug 19, 2024
1 parent 5affd4f commit 664006e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Datagrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 664006e

Please sign in to comment.