Introducing Laravel Quizzes! Play now

Laravel Livewire Tables Documentation

This is the documentation for v2. 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

$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:

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

clearSorts

You can clear all the applied sorts:

$this->emit('clearSorts');

setFilter

You can have the table run a specific filter:

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

clearFilters

You can have the table clear all filters:

$this->emit('clearFilters');