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 committed Jun 22, 2024
1 parent edee4d6 commit 2c25fab
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 @@ -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;
}
Expand Down

0 comments on commit 2c25fab

Please sign in to comment.