- Making Columns
- Built-in searching
- Built-in sorting
- Built-in cell formatting
- Conditional columns
- User column selection
- Secondary Header Functionality
- Footer Functionality
- Misc. Functionality
Getting Started
Usage
Columns
The Query
Row
Bulk Actions
Filters
Customizing
Display
🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.
This is the documentation for v1 but the latest version is v3. You can switch versions in the menu on the left/at the top. Check your current version with the following command:
composer show rappasoft/laravel-livewire-tables
Selected rows query
In the component, you have access to $this->selectedRowsQuery
which is a Builder instance of the selected rows.
1public function exportSelected()2{3 if ($this->selectedRowsQuery->count() > 0) {4 // Do something with the selected rows5 }6 7 // Notify there is nothing to export8}
See also Getting the selected keys if you would just like access to the selected primary keys.