How i can reload the datatable? #530
Answered
by
luanfreitasdev
joselrodriguezd
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
luanfreitasdev
Jul 30, 2022
Replies: 1 comment 3 replies
-
Hello! @joselrodriguezd, First, the component that will receive the update is already listening through the To update the component on top of the livewire dispatch: public function updated($name, $value)
{
$this->emit('pg:eventRefresh-default'); // or emitTo(MyTable::class, 'pg:eventRefresh-default');
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
joselrodriguezd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! @joselrodriguezd,
First, the component that will receive the update is already listening through the
'pg:eventRefresh-default'
method. (check in the listeners section).To update the component on top of the livewire dispatch: