F
Filament11mo ago
amtech

Is there a way to customize in select::make('color) in filament to select colors and show the color

Please guys, is there a way to customize in select::make('color) in filament to select colors and show the exact color or color icon and the color code from the list of options.
5 Replies
Dennis Koch
Dennis Koch11mo ago
You can use ->allowHtml() and then return an HtmlString for your options which renders your items with color
Povilas K
Povilas K11mo ago
amtech
amtechOP11mo ago
Thank for this it's great, but I need it to work for selecting multiple value and show the color selected
No description
No description
Povilas K
Povilas K11mo ago
That's outside of my knowledge/practice, I'm afraid, too custom/advanced, haven't done it myself.
amtech
amtechOP11mo ago
alright thanks for the help

Did you find this page helpful?