F
Filamentβ€’5mo ago
islandnuge

Style/color code entries in SelectColumn dropdown list

Is it possible to stylze the select dropdown in the column/table view? I have a status dropdown that I'd like to indicate with color where possible.
Solution:
Leandro Ferreira (@leandrocfe)
πŸ’‘ Filament Tip: Use $table->recordClasses(...) to apply different styles to table rows based on their record values πŸ’…
From Leandro Ferreira (@leandrocfe)
X
Jump to solution
8 Replies
awcodes
awcodesβ€’5mo ago
Color on what part exactly? But you do have the option to create a custom select column for your needs.
islandnuge
islandnugeOPβ€’5mo ago
I'd like to color the selection with green whtn the value is 1 or 'active' but hte drop-down seems to be fixed to the os style or alternatively, i can set the cell's background color based on that value instead
awcodes
awcodesβ€’5mo ago
Hmm, i guess you could do it with custom css, but that feels fragile to me in this use case. The bg color might be more appropriate.
Solution
LeandroFerreira
LeandroFerreiraβ€’5mo ago
Leandro Ferreira (@leandrocfe)
πŸ’‘ Filament Tip: Use $table->recordClasses(...) to apply different styles to table rows based on their record values πŸ’…
From Leandro Ferreira (@leandrocfe)
X
islandnuge
islandnugeOPβ€’5mo ago
thank you!
LeandroFerreira
LeandroFerreiraβ€’5mo ago
did it work?
Cupid
Cupidβ€’5mo ago
hi
islandnuge
islandnugeOPβ€’5mo ago
@Leandro Ferreira sorry for teh delay - yes it did - thank you so much!

Did you find this page helpful?