- 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.
🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.
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
Available Methods
These are the available configuration methods for bulk actions.
setBulkActions
Set the bulk actions array.
public function configure(): void
{
$this->setBulkActions([
'exportSelected' => 'Export',
]);
}
setBulkActionsStatus
Enabled by default, enable/disable bulk actions for the component.
public function configure(): void
{
$this->setBulkActionsStatus(true);
$this->setBulkActionsStatus(false);
}
setBulkActionsEnabled
Enable bulk actions on the component.
public function configure(): void
{
// Shorthand for $this->setBulkActionsStatus(true)
$this->setBulkActionsEnabled();
}
setBulkActionsDisabled
Disable bulk actions on the component.
public function configure(): void
{
// Shorthand for $this->setBulkActionsStatus(false)
$this->setBulkActionsDisabled();
}
setSelectAllStatus
Disabled by default, enable/disable pre-selection of all bulk action check boxes.
public function configure(): void
{
$this->setSelectAllStatus(true);
$this->setSelectAllStatus(false);
}
setSelectAllEnabled
Check all bulk action checkboxes.
public function configure(): void
{
// Shorthand for $this->setSelectAllStatus(true)
$this->setSelectAllEnabled();
}
setSelectAllDisabled
Deselect the select-all bulk actions checkbox.
public function configure(): void
{
// Shorthand for $this->setSelectAllStatus(false)
$this->setSelectAllDisabled();
}
setHideBulkActionsWhenEmptyStatus
Disabled by default, enable/disable hiding of bulk actions dropdown when empty.
public function configure(): void
{
$this->setHideBulkActionsWhenEmptyStatus(true);
$this->setHideBulkActionsWhenEmptyStatus(false);
}
setHideBulkActionsWhenEmptyEnabled
Hide bulk actions dropdown when empty.
public function configure(): void
{
// Shorthand for $this->setHideBulkActionsWhenEmptyStatus(true)
$this->setHideBulkActionsWhenEmptyEnabled();
}
setHideBulkActionsWhenEmptyDisabled
Show bulk actions dropdown when empty.
public function configure(): void
{
// Shorthand for $this->setHideBulkActionsWhenEmptyStatus(false)
$this->setHideBulkActionsWhenEmptyDisabled();
}