MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 258 forks source link

Refresh datatable #536

Open khadraoui-ines opened 1 year ago

khadraoui-ines commented 1 year ago

Hi, I am having an issue when I try to refresh my datatable The content of the table (data) is refreshing correctly, but the labels of the columns aren't The initial labels aren't changing Any idea please?

mrtorks commented 1 year ago

hi I found this listener

https://github.com/MedicOneSystems/livewire-datatables/blob/be96bed53adfbc0842d789f0b77c2000ff99cdac/src/Http/Livewire/LivewireDatatable.php#L88 So you can do something like this $this->emit('refreshLivewireDatatable') and it should work. Do let me know if it does work.