Bulk
trait Bulk
Properties
| bool | $has_bulk | Indicates if the table has bulk actions enabled. |
|
| (int|string)[] | $yat_selected_checkbox | Array of selected row IDs for bulk actions. |
|
| bool | $selectAll | Controls the "Select All" checkbox state. |
|
| bool | $pageSelected | Indicates if the current page is selected. |
|
| bool | $allSelected | Indicates if all data (across all pages) is selected. |
Methods
Clear the current selection.
Enable or disable bulk actions.
Handle updates to the "Select All" checkbox.
Select all rows on the current page.
Select all rows across all pages (after filters).
Get the list of selected row IDs.
Details
at line 49
void
emptySelection()
Clear the current selection.
Resets the selected checkboxes and the "select all" state.
at line 61
void
hasBulk(bool $bool)
Enable or disable bulk actions.
at line 74
void
updatedSelectAll(bool $value)
Handle updates to the "Select All" checkbox.
This method is triggered by Livewire when $selectAll property changes.
at line 86
void
selectCurrentPage(bool $value)
Select all rows on the current page.
at line 101
void
select_all_data(bool $value)
Select all rows across all pages (after filters).
at line 126
(int|string)[]
getSelectedRows()
Get the list of selected row IDs.