- 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
Sort & Filter Names
Customizing the sort names
When clicking sortable column headers, the component will use the column name to text first to define the sorting pill in the UI.
If you don't like the way the name is rendered, you can overwrite it:
1public array $sortNames = [2 'email_verified_at' => 'Verification Status',3 '2fa' => 'Two Factor Authentication Status',4];
Customizing the sort direction names
The default sort direction names are A-Z for ascending and Z-A for descending, you can overwrite these on a per-column basis with the following class property:
1public array $sortDirectionNames = [2 'enabled' => [3 'asc' => 'Yes',4 'desc' => 'No',5 ],6];
Customizing the filter names
When selecting filters, by default the component will use the filter text to render the filter pill selection above the table.
If you don't like the way the component decided to do this, you may override the actual titles of these pills using a component property:
1public array $filterNames = [2 'type' => 'User Type',3 'active' => 'User Status',4];