- Creating Columns
- Relationships
- Available Methods
- Other Column Types
- Column Selection
- Secondary Header
- Footer
Getting Started
Usage
DataTable
Columns
Rows
Sorting
Pagination
Search
Bulk Actions
Filters
Reordering
Secondary Header
Footer
Examples
Misc.
This is the documentation for v2. 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
Column Selection
Column select is on by default. All columns are selected by default and saved in the users session.
Excluding from Column Select
If you don't want a column to be able to be turned off from the column select box, you may exclude it:
Column::make('Address', 'address.address')
->excludeFromColumnSelect(),
Deselected by default
If you would like a column to be included in the column select but deselected by default, you can specify:
Column::make('Address', 'address.address')
->deselected(),
Available Methods
setColumnSelectStatus
Enabled by default, enable/disable column select for the component.
public function configure(): void
{
$this->setColumnSelectStatus(true);
$this->setColumnSelectStatus(false);
}
setColumnSelectEnabled
Enable column select on the component.
public function configure(): void
{
// Shorthand for $this->setColumnSelectStatus(true)
$this->setColumnSelectEnabled();
}
setColumnSelectDisabled
Disable column select on the component.
public function configure(): void
{
// Shorthand for $this->setColumnSelectStatus(false)
$this->setColumnSelectDisabled();
}
setRememberColumnSelectionStatus
Enabled by default, whether or not to remember the users column select choices.
public function configure(): void
{
$this->setRememberColumnSelectionStatus(true);
$this->setRememberColumnSelectionStatus(false);
}
setRememberColumnSelectionEnabled
Remember the users column select choices.
public function configure(): void
{
// Shorthand for $this->setRememberColumnSelectionStatus(true)
$this->setRememberColumnSelectionEnabled();
}
setRememberColumnSelectionDisabled
Forget the users column select choices.
public function configure(): void
{
// Shorthand for $this->setRememberColumnSelectionStatus(false)
$this->setRememberColumnSelectionDisabled();
}