F
Filament4mo ago
Zoltar

table filter icon - add text after or before icon

Hello, Is it possible to insert text next to or before the table filter icon?
Solution:
```php $table ->filtersTriggerAction( fn (Action $action) => $action->button()->label('New Filter Name') );...
Jump to solution
4 Replies
Solution
Adam Holmes
Adam Holmes4mo ago
$table
->filtersTriggerAction(
fn (Action $action) => $action->button()->label('New Filter Name')
);
$table
->filtersTriggerAction(
fn (Action $action) => $action->button()->label('New Filter Name')
);
Zoltar
ZoltarOP4mo ago
Error: App\Filament\Resources\ActivityResource::App\Filament\Resources{closure}(): Argument #1 ($action) must be of type App\Filament\Resources\App\Filament\Resources\Action, Filament\Tables\Actions\Action given, called in C:\xampp\htdocs\siquis\vendor\filament\support\src\Concerns\EvaluatesClosures.php on line 35
Adam Holmes
Adam Holmes4mo ago
Make sure you use the correct action class. Alias it if you have to
Zoltar
ZoltarOP4mo ago
ok its works with 'use Filament\Tables\Actions\Action' thanks

Did you find this page helpful?