- Creating Columns
- Relationships
- Available Methods
- Other Column Types
- Column Selection
- Secondary Header
- Footer
- Reusable Columns
- Anonymous Columns
- Introduction
- Date Filters
- DateRange Filters
- DateTime Filters
- Multi-Select Dropdown Filters
- Multi-Select Filters
- NumberRange Filters
- Number Filters
- Select Filters
- Text Filters
- Refreshing
- Loading Placeholder
- Multiple Tables Same Page
- Adding Custom Markup
- Debugging
- Saving Table State
- Lifecycle Hooks
Getting Started
Usage
DataTable
Columns
Rows
Sorting
Pagination
Search
Bulk Actions
Filters
Filter Types
Reordering
Secondary Header
Footer
Examples
Misc.
Sponsored
Advanced Usage
Examples
🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.
This is the documentation for 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
Multi-Select Dropdown Filters
Multi-select dropdown Filters
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
1use Rappasoft\LaravelLivewireTables\Views\Filters\MultiSelectDropdownFilter; 2 3public function filters(): array 4{ 5 return [ 6 MultiSelectDropdownFilter::make('Tags') 7 ->options( 8 Tag::query() 9 ->orderBy('name')10 ->get()11 ->keyBy('id')12 ->map(fn($tag) => $tag->name)13 ->toArray()14 )15 ->setFirstOption('All Tags'),16 ];17}