We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9b2bc commit 8974431Copy full SHA for 8974431
package-ui/src/Table.php
@@ -175,11 +175,9 @@ public function defaultSorting(?Closure $using): static
175
/**
176
* Disable sorting on the table.
177
*/
178
- public function withoutSorting(): static
+ public function withoutSorting(bool $without = true): static
179
{
180
- if ($this->columns instanceof ColumnCollection) {
181
- $this->columns->all()->each(fn (Column $column) => $column->withoutSorting());
182
- }
+ $this->withoutSorting = $without;
183
184
return $this;
185
}
0 commit comments