datatable + laravel + livewire
datatable + laravel + livewire

Hi
In my project I use livewire with datatable and modal. When I show modal:
public function show($regeneration)
{
$this->dispatch('open-modal', 'detailsModal');
}
all add-ons such as search engine, sorting and paging disappear.
When I close modal still all adds are unavilable
I tried :
$('#tabela').DataTable().ajax.reload();
but still nothing
Why?
How to reload datatable?
BR
This discussion has been closed.
Answers
Start by looking at the browser's console for errors.
Its hard to say without seeing the problem. PLease post a link to your page or a test case replicating the error so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
In console I don't see any errors but I found intresting thing.
When I don't see DataTable add's and in console put:
var table = $('#tabela').DataTable();
then all add's show up but stop working button to run Modal
hmm
my problem is the same like: https://datatables.net/forums/discussion/70427/why-is-the-datatable-turns-to-normal-table-when-clicking-calling-another-function
Maybe anyone resole it?
We will need to see a running test case showing the issue to help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin