F
Filament4mo ago
dyo

Refresh view column when a method in resource list is used

I'm working with viewColumn, there I have buttons, which is called a method from my list resource component. Can someone help me if I want the column to be refreshed if a method is called? the column
ViewColumn::make('follow_up')->disableClick()
->view('livewire.konfirmasi.follow-up'),
ViewColumn::make('follow_up')->disableClick()
->view('livewire.konfirmasi.follow-up'),
i've tried this in list resource component, but it's not working.
protected $listeners = [
'refresh' => '$refresh'
];

public function pending($id)
{
KirimPesanWhatsappPending::dispatch($id, 'Whatsapp');
$this->emit('refresh');
}
protected $listeners = [
'refresh' => '$refresh'
];

public function pending($id)
{
KirimPesanWhatsappPending::dispatch($id, 'Whatsapp');
$this->emit('refresh');
}
1 Reply
dyo
dyo4mo ago
anyone can help me?