Skip to content

Allow customizing the table filters reset action - #20476

Open
devhoussam1998 wants to merge 1 commit into
filamentphp:4.xfrom
devhoussam1998:feature/filters-reset-action-icon
Open

devhoussam1998 wants to merge 1 commit into
filamentphp:4.xfrom
devhoussam1998:feature/filters-reset-action-icon

Conversation

@devhoussam1998

Copy link
Copy Markdown
Contributor

Description

Fixed #20475

use Filament\Actions\Action;
use Filament\Tables\Table;

public function table(Table $table): Table
{
    return $table
        ->filters([
            // ...
        ])
        ->filtersResetAction(
            fn (Action $action) => $action
                ->icon('heroicon-m-x-mark')
                ->label('Clear filters'),
        );
}

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@danharrin danharrin added enhancement New feature or request pending review labels Sep 10, 2026
@danharrin danharrin added this to the v4 milestone Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants