manually refresh table content
Hello Filament world
Is it possible to have an action button on the filament table for refreshing the content manually
I know there is
->poll('10sec')
but it's not suitable for my need
Thanks7 Replies
press refresh on the page?
Or you add a listener which is a refresh listener? like:
https://laracasts.com/discuss/channels/filament/refresh-filament-table-component
HI !
This is how I do this logic in my projects:
I use it in a custom page using
HasTable
implementation (https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component)
In combination with a Form and their input being updated:
So you can easylly use it in a custom
Action
Thanks a lot. I wish I can do that without custom page
You don't need a custom page. Filament pages are livewire components, you can add listeners to those classes like you would to any other livewire component
The suggestions so far should cover you. Look into livewire's event documentation for more details