F
Filamentβ€’10mo ago
Vaylor

πŸ‘‹ Hello,

I'm trying to customize the indicator for a select filter for a JSON based column to show the label dynamically based on the user language. I am able to do so using the method indicateUsing but I think it slows down the panel if I want to do it for multiple select fitlers. Wondering if there is an easier way to show a JSON column. Like when we use the method getOptionLabelFromRecordUsing to customize the select fitler field.
SelectFilter::make('investor_id')
->indicateUsing(function (SelectFilter $filter): ?string {
// Get the selected model records via $filter->getState()['values']
// return the record name based on user language
})
->relationship('investors', 'name')
SelectFilter::make('investor_id')
->indicateUsing(function (SelectFilter $filter): ?string {
// Get the selected model records via $filter->getState()['values']
// return the record name based on user language
})
->relationship('investors', 'name')
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server