How to update stats wiget data when Reset Filters is called.

6 Replies
ImShehryar
ImShehryarOP2y ago
Also on remove specific filter and remove all filters "X" icons
LeandroFerreira
https://filamentphp.com/blog/how-to-refresh-widgets-when-table-actions-are-fired
public function resetTableFiltersForm(): void
{
$this->getTableFiltersForm()->fill();
$this->updatedTableFilters();
$this->emit('some-event');
}
public function resetTableFiltersForm(): void
{
$this->getTableFiltersForm()->fill();
$this->updatedTableFilters();
$this->emit('some-event');
}
Filament
How to Refresh Widgets When Table Actions Are Fired by Leandro C. F...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
ImShehryar
ImShehryarOP2y ago
Thanks sir..
ImShehryar
ImShehryarOP2y ago
resetTableFiltersForm() is not called when clicking on these X icons...How to also update widget on clicking these X
LeandroFerreira
Maybe
public function resetPage(?string $pageName = null): void
{
//
}
public function resetPage(?string $pageName = null): void
{
//
}
ImShehryar
ImShehryarOP2y ago
Thanks sir...
Want results from more Discord servers?
Add your server