FilamentF
Filament2y ago
Vp

How to change SelectFilter indicator

How can I change select filter indicator on table, I am aware that I can transform this whole thing to custom but this below code is working to achieve what I want, I just need to change the indicator (display name instead of id)
Tables\Filters\SelectFilter::make('album_id')
    ->label(__('Album Name'))
    ->relationship('album', 'id', fn (Builder $query) => $query->active())
    ->getOptionLabelFromRecordUsing(fn (Model $record) => $record->name->value)

Thanks in advance
Screenshot_from_2024-01-26_16-16-11.png
Solution
I've check the source code and it's not possible, so change my logic to custom filter
Was this page helpful?