Skip to content

Commit 1246891

Browse files
committed
Fix some minor issues
1 parent f730ef6 commit 1246891

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/php/api/grid_views.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Grid Views
22

33
Grid views are a generic solution for the creation of listings that are ubiquitous in the software.
4-
In addition to rendering, the grid view also take care of sorting, filtering and pagination, and ensure that a lot of boilerplating becomes obsolete.
4+
The layout is hard-coded and renders entries in the form of a table.
5+
In addition to rendering, the grid view also takes care of sorting, filtering and pagination, and ensure that a lot of boilerplating becomes obsolete.
56

67
The implementation essentially offers the following advantages:
78
1. A uniform appearance and usability for the user.
@@ -331,16 +332,16 @@ GridViewColumn::for('foo')
331332

332333
`UserFilter` is a filter for columns that contain user ids.
333334

334-
### Events
335+
## Events
335336

336337
Existing grid views can be modified using events.
337338

338339
Example of adding an additional column:
339340

340341
```php
341342
$eventHandler->register(
342-
\wcf\event\gridView\UserRankGridViewInitialized::class,
343-
static function (\wcf\event\gridView\UserRankGridViewInitialized $event) {
343+
\wcf\event\gridView\admin\UserRankGridViewInitialized::class,
344+
static function (\wcf\event\gridView\admin\UserRankGridViewInitialized $event) {
344345
$event->gridView->addColumnBefore(
345346
GridViewColumn::for('hideTitle')
346347
->label('hideTitle')

0 commit comments

Comments
 (0)