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

Events

These are the available events on the datatable component that you can fire from your application:

refreshDatatable

1$this->emit('refreshDatatable');

Calls $refresh on the component. Good for updating from external sources or as an alternative to polling.

setSort

You can have the table sort a specific column:

1$this->emit('setSort', 'name', 'asc');

clearSorts

You can clear all the applied sorts:

1$this->emit('clearSorts');

setFilter

You can have the table run a specific filter:

1$this->emit('setFilter', 'status', '1');

clearFilters

You can have the table clear all filters:

1$this->emit('clearFilters');