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
Copy file name to clipboardExpand all lines: docs/filters/creating-filters.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,15 @@ public function filters(): array
61
61
25 => 'Type Y',
62
62
26 => 'Type Z',
63
63
],
64
-
]),
64
+
])
65
+
->setFirstOption('All Tags'),
65
66
];
66
67
}
67
68
```
69
+
To set a defualt "All" option at the start of the dropdown, you can do so by utilising the
70
+
```
71
+
->SetFirstOption('NAME')
72
+
```
68
73
69
74
## Multi-select Filters
70
75
@@ -91,23 +96,24 @@ public function filters(): array
91
96
92
97
## Multi-select dropdown Filters
93
98
94
-
Multi-select dropdown filters are a simple dropdown list. The user can select multiple options from the list. There is also an 'All' option that will select all values.
99
+
Multi-select dropdown filters are a simple dropdown list. The user can select multiple options from the list. There is also an 'All' option that will select all values
95
100
96
101
```php
97
-
use Rappasoft\LaravelLivewireTables\Views\Filters\MultiSelectDropdownFilter;
102
+
use Rappasoft\LaravelLivewireTables\Views\Filters\SelectFilter;
0 commit comments