Bulk
trait Bulk
Properties
| bool | $has_bulk | Indicates if the table has bulk actions enabled. |
|
| array<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 41
void
emptySelection()
Clear the current selection.
Resets the selected checkboxes and the "select all" state.
at line 52
void
hasBulk(bool $bool)
Enable or disable bulk actions.
at line 65
void
updatedSelectAll(bool $value)
Handle updates to the "Select All" checkbox.
This method is triggered by Livewire when $selectAll property changes.
at line 76
void
selectCurrentPage(bool $value)
Select all rows on the current page.
at line 91
void
select_all_data(bool $value)
Select all rows across all pages (after filters).
at line 105
array<int|string>
getSelectedRows()
Get the list of selected row IDs.