Laravel Livewire Tables Documentation

🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.

This is the documentation for v2 but the latest version is v3. You can switch versions in the menu 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.

1public function configure(): void
2{
3 $this->setBulkActions([
4 'exportSelected' => 'Export',
5 ]);
6}

setBulkActionsStatus

Enabled by default, enable/disable bulk actions for the component.

1public function configure(): void
2{
3 $this->setBulkActionsStatus(true);
4 $this->setBulkActionsStatus(false);
5}

setBulkActionsEnabled

Enable bulk actions on the component.

1public function configure(): void
2{
3 // Shorthand for $this->setBulkActionsStatus(true)
4 $this->setBulkActionsEnabled();
5}

setBulkActionsDisabled

Disable bulk actions on the component.

1public function configure(): void
2{
3 // Shorthand for $this->setBulkActionsStatus(false)
4 $this->setBulkActionsDisabled();
5}

setSelectAllStatus

Disabled by default, enable/disable pre-selection of all bulk action check boxes.

1public function configure(): void
2{
3 $this->setSelectAllStatus(true);
4 $this->setSelectAllStatus(false);
5}

setSelectAllEnabled

Check all bulk action checkboxes.

1public function configure(): void
2{
3 // Shorthand for $this->setSelectAllStatus(true)
4 $this->setSelectAllEnabled();
5}

setSelectAllDisabled

Deselect the select-all bulk actions checkbox.

1public function configure(): void
2{
3 // Shorthand for $this->setSelectAllStatus(false)
4 $this->setSelectAllDisabled();
5}

setHideBulkActionsWhenEmptyStatus

Disabled by default, enable/disable hiding of bulk actions dropdown when empty.

1public function configure(): void
2{
3 $this->setHideBulkActionsWhenEmptyStatus(true);
4 $this->setHideBulkActionsWhenEmptyStatus(false);
5}

setHideBulkActionsWhenEmptyEnabled

Hide bulk actions dropdown when empty.

1public function configure(): void
2{
3 // Shorthand for $this->setHideBulkActionsWhenEmptyStatus(true)
4 $this->setHideBulkActionsWhenEmptyEnabled();
5}

setHideBulkActionsWhenEmptyDisabled

Show bulk actions dropdown when empty.

1public function configure(): void
2{
3 // Shorthand for $this->setHideBulkActionsWhenEmptyStatus(false)
4 $this->setHideBulkActionsWhenEmptyDisabled();
5}