DEV Community

Cover image for Filament Up to Date #3: Customize the Table Filters Reset Button
Andréia Bohner
Andréia Bohner

Posted on

Filament Up to Date #3: Customize the Table Filters Reset Button

You can change the icon, label, and any other action option on the filters reset control. Every method available for customizing action trigger buttons works here.

use Filament\Actions\Action;
use Filament\Support\Icons\Heroicon;

$table
    ->filtersResetAction(
        fn (Action $action) => $action
            ->icon(Heroicon::XMark)
            ->label('Clear filters'),
    );
Enter fullscreen mode Exit fullscreen mode

Why it matters

The default label may not match your app's wording, or your users' language. Now you can change it in one place without overriding views.


Filament Up To Date Tip #3

Pull request

Thanks @devhoussam1998 for contributing this in PR #20476! 🙌


📚 All tips in this series: devdeia.com/filament-up-to-date

Top comments (0)