- 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
User column selection
This feature is available in v1.10 and above
This feature is off by default.
To enable this feature, add this property to your table:
1public bool $columnSelect = true;
You can exclude columns from the column selector list so that they can not be hidden:
1Column::make('email')2 ->excludeFromSelectable(),
Working with custom row views:
When working with custom row views, the column selector will hide the headers but will not know how to handle the cells. You can manually hide each cell depending on the column key like so:
1@if (!$columnSelect || ($columnSelect && $this->isColumnSelectEnabled('email')))2 // This column is selected or column select is off3@endif
Note: If you enable column select and then add new columns, they will be hidden by default.
This feature is available in v1.14 and above
Disabling the column selection session
To disable the session remembering the user's column selection and revert to the default on each page load:
1public bool $rememberColumnSelection = false;
Pre-selecting columns
To pre-select columns for the first time the user loads the table (the session storage will take over on subsequent requests, unless the $rememberColumnSelection bool is set to false):
1Column::make('email')2 ->selected(),