F
Filament3mo 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 Koch3mo ago
You can use ->allowHtml() and then return an HtmlString for your options which renders your items with color
amtech
amtech3mo 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 K2mo ago
That's outside of my knowledge/practice, I'm afraid, too custom/advanced, haven't done it myself.
amtech
amtech2mo ago
alright thanks for the help