Dimas Angga
Dimas Angga
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
great! it is worked after modified to
->options(fn (): array =>
Customer::all()
->mapWithKeys(fn ($customer) =>
[$customer->id => $customer->NamaPerusahaan . ' - ' . $customer->ContactPerson]
)
->toArray()
)
->options(fn (): array =>
Customer::all()
->mapWithKeys(fn ($customer) =>
[$customer->id => $customer->NamaPerusahaan . ' - ' . $customer->ContactPerson]
)
->toArray()
)
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
ok, i will try around, thanks!
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
@archilex one more question if you have more time for this discussion 🙂 i want to show all "NamaPerusahaan" first when first load, but again, i want to customize the label option, if i directly use
->options(Customer::all()->pluck('NamaPerusahaan', 'id'))
->options(Customer::all()->pluck('NamaPerusahaan', 'id'))
it will only show "NamaPerusahaan" only in the label, but when doing search, it works perfectly for the label option, do you know something about this ? or we can use the method like inside
->getSearchResultsUsing
->getSearchResultsUsing
this ?
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
big thanks for you!
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
because i surfing along the documentation and have no result
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
yes! it is works for me, big love for u ❤️ #nogay hahaha
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
i see, i understand now, is this documented in official filament v3 ?
20 replies
FFilament
Created by Dimas Angga on 8/28/2023 in #❓┊help
getOptionLabelUsing is not working for custom option label result in Select
20 replies