Skip to content

Commit 55f1939

Browse files
author
=
committed
update docs
1 parent d69301c commit 55f1939

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/filters/available-methods.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,20 @@ If the filter takes any config options, you can set them with the `config` metho
205205
'min' => '2020-01-01',
206206
'max' => '2021-12-31',
207207
])
208-
```
208+
```
209+
210+
### Hiding filters
211+
212+
If you don't want the filter to be visible in the `ui`, you can use the `hidden` method:
213+
214+
```php
215+
216+
// this filter won't be seen in popover and slide down
217+
SelectFilter::make('Active')
218+
->options([
219+
'' => 'All',
220+
'yes' => 'Yes',
221+
'no' => 'No',
222+
])
223+
->hidden() // hide the filter from popover and slidedown
224+
```

0 commit comments

Comments
 (0)