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
## [v3.4.3] - 2024-08-08
### New Features
- Boolean/Toggle Filter by @lrljoe in #1830
### Bug Fixes
- View component column fixes by @lrljoe in #1825
### Docs
- Update setDelaySelectAllEnabled Docs by @lrljoe in #1829
- ViewComponentColumn - New method docs by @lrljoe in #1828
Copy file name to clipboardExpand all lines: docs/bulk-actions/available-methods.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,11 +305,29 @@ public function configure(): void
305
305
306
306
This prevents the default behaviour from firing, which improves performance when working with very large sets of data. With this feature enabled, the backend update will not fire, however an indication that all result rows have been selected will be passed to the backend, and the frontend will behave as if all rows are selected.
307
307
308
+
308
309
When running your Bulk Action, having used "Select All", you may then access the array of "all rows" based on your most recent search/filter results:
309
-
```
310
+
```php
310
311
$rows = $this->getSelectedRows();
311
312
```
312
313
314
+
Once your bulk action completes, ensure that you call:
315
+
```php
316
+
$this->clearSelected();
317
+
```
318
+
319
+
### IMPORTANT NOTES
320
+
#### Actions After Frontend Select All
321
+
If you apply a filter/search/sort, then the delay select will be abandoned, and the array will be populated. Ensure that you do not do this!
322
+
323
+
#### Use of setSelectAll
324
+
Do NOT call either of these methods, as they will prevent the correct method from working. These two methods SELECT ALL regardless of what the frontend is doing.
325
+
```php
326
+
$this->setSelectAllStatus(true);
327
+
$this->setSelectAllEnabled();
328
+
```
329
+
330
+
313
331
## setDelaySelectAllDisabled
314
332
315
333
This is the default behaviour, see setDelaySelectEnabled for details on what enabling this does.
Should you wish to render the Custom Component in it's entirety, then you may use the customComponent method. Otherwise it will pass in the values directly to the blade, rather than executing your View Component.
This is currently in beta, and will only work with Tailwind.
8
+
9
+
## Details
10
+
11
+
The BooleanFilter is designed so that you can toggle a more complex query/filter, as opposed to being a yes/no type of filter (which is what the SelectFilter is perfect for)
12
+
13
+
For example, your filter may look like this, toggling the filter from true to false would apply/not apply a more complex query to the query.
14
+
15
+
```php
16
+
BooleanFilter::make('Limit to Older Enabled Users')
Copy file name to clipboardExpand all lines: docs/filter-types/filters-daterange.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: DateRange Filters
3
-
weight: 3
3
+
weight: 4
4
4
---
5
5
6
6
DateRange filters are Flatpickr based components, and simply filtering by a date range. If you would like to more smoothly filter your query by a start and end date, you can use the DateRangeFilter:
@@ -70,17 +70,17 @@ A full list of options is below, please see the Flatpickr documentation for refe
70
70
71
71
You may use this to set a default value for the filter that will be applied on first load (but may be cleared by the user). This should be an array:
Then you should disable injection to avoid conflicts:
138
138
139
-
```
139
+
```php
140
140
'inject_third_party_assets_enabled' => false,
141
141
```
142
142
@@ -146,12 +146,12 @@ You must ensure that Flatpickr is present PRIOR to the tables loading. For exam
146
146
It is typically recommended not to utilise the CDN approach, as changes to core code may impact behaviour, and you may need to implement changes to your CSP if present.
147
147
148
148
If using the CDN approach, ensure the following config matches:
@@ -161,7 +161,7 @@ Then include the following in your layout:
161
161
162
162
### Option 4 - Locally Installed
163
163
If you have a locally installed version of Flatpickr already, you can set injection to false, and your local version will be used instead.
164
-
```
164
+
```js
165
165
'inject_third_party_assets_enabled'=>false,
166
166
```
167
167
@@ -170,7 +170,7 @@ The default installation includes only the English (en) locale.
170
170
171
171
### Bundling
172
172
Should you wish to localise, you must include the Flatpickr locale files in your build pipeline. This applies to only the specific locales that you require in your app.js (requires adding the flatpickr library to your package.json by executing "npm i flatpickr --save")
0 commit comments