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 90a27a3 commit a7ee823Copy full SHA for a7ee823
1 file changed
docs/php/api/grid_views.md
@@ -44,6 +44,8 @@ final class ExampleGridView extends AbstractGridView
44
->sortable()
45
->titleColumn()
46
]);
47
+
48
+ $this->setDefaultSortField('title');
49
}
50
51
#[\Override]
@@ -270,8 +272,8 @@ final class FooGridView extends AbstractGridView
270
272
GridViewColumn::for('title')
271
273
->sortable();
274
- $this->setSortField('title');
- $this->setSortOrder('ASC');
275
276
+ $this->setDefaultSortOrder('ASC');
277
278
279
```
0 commit comments