Skip to content

Refresh relationmanager table from page header action #14894

Answered by leandrocfe
jwhoami asked this question in Help
Discussion options

You must be logged in to vote

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')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jwhoami
Comment options

@jwhoami
Comment options

Answer selected by jwhoami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants