Refresh relationmanager table from page header action #14894
-
PackagePanel builder Package Versionv3.2 How can we help you?Hi, I want to click on a page action (shown on top of the page) and dispatch an event which refreshes the relationmanager on the page below. How can i achieve this? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
leandrocfe
Nov 27, 2024
Replies: 1 comment 2 replies
-
Add it to the Relation Manager Class use Livewire\Attributes\On;
#[On('refreshData')]
public function refreshData(): void
{
// do something
} Dispatch it in the Action Actions\Action::make('yourAction')
->dispatch('refreshData') |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jwhoami
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add it to the Relation Manager Class
Dispatch it in the Action