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 Jul 18, 2024
1 parent 5affd4f commit 776e10f
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 776e10f

Please sign in to comment.