You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`DateFilter` is a filter for columns that contain unix timestamps.
306
-
307
-
#### I18nTextFilter
308
-
309
-
`I18nTextFilter` is a filter for text columns that are using i18n phrases.
310
-
311
-
#### IpAddressFilter
312
-
313
-
`IpAddressFilter` is a filter for columns that contain IPv6 addresses, allowing the user to enter addresses in the IPv4 format too.
314
-
315
-
#### NumericFilter
316
-
317
-
`NumericFilter` is a filter for columns that contain numeric values.
318
-
319
-
#### ObjectIdFilter
320
-
321
-
`ObjectIdFilter` is a filter for columns that contain object ids.
322
-
323
-
#### SelectFilter
324
-
325
-
`SelectFilter` allows a column to be filtered on the basis of a select dropdown.
294
+
In addition, filters can be assigned directly to the grid view if, for example, filtering should be possible for data that is not displayed as a separate column.
326
295
327
296
```php
328
-
GridViewColumn::for('foo')
329
-
->filter(new SelectFilter([
330
-
1 => 'value 1',
331
-
0 => 'value 0',
332
-
]));
297
+
class ExampleGridView extends AbstractGridView
298
+
{
299
+
public function __construct()
300
+
{
301
+
$this->addAvailableFilters([
302
+
new TextFilter('title', 'wcf.global.title'),
303
+
]);
304
+
}
305
+
}
333
306
```
334
307
335
-
#### TextFilter
336
-
337
-
`TextFilter` is a filter for text columns.
338
-
339
-
#### TimeFilter
340
-
341
-
`TimeFilter` is a filter for columns that contain unix timestamps.
342
-
In contrast to `DateFilter`, this filter also allows filtering by a specific time.
343
-
344
-
#### UserFilter
345
-
346
-
`UserFilter` is a filter for columns that contain user ids.
308
+
Grid Views and List Views share the same filters.
309
+
A complete list of available filters can be found in the [List View documentation](list_views.md#filtering).
0 commit comments