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

6 Replies
ImShehryar
ImShehryar15mo ago
Also on remove specific filter and remove all filters "X" icons
LeandroFerreira
LeandroFerreira15mo ago
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
ImShehryar15mo ago
Thanks sir..
ImShehryar
ImShehryar15mo ago
resetTableFiltersForm() is not called when clicking on these X icons...How to also update widget on clicking these X
LeandroFerreira
LeandroFerreira15mo ago
Maybe
public function resetPage(?string $pageName = null): void
{
//
}
public function resetPage(?string $pageName = null): void
{
//
}
ImShehryar
ImShehryar15mo ago
Thanks sir...