F
Filament11mo 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)
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
No description
Solution:
I've check the source code and it's not possible, so change my logic to custom filter
Jump to solution
1 Reply
Solution
Vp
Vp11mo ago
I've check the source code and it's not possible, so change my logic to custom filter
Want results from more Discord servers?
Add your server