SelectColumn it is possible to add allowHtml?

It is possible to add different color options like Form Select? thanks in advance
No description
13 Replies
Bruno Pereira
Bruno Pereira4mo ago
you can add any color you want as long you have a custom theme. Because filament css only has the colors that are used internally.
Dennis Koch
Dennis Koch4mo ago
You need to wrap the values in new HtmlString().
EnricoMaxwell
EnricoMaxwellOP4mo ago
this should work?
No description
No description
EnricoMaxwell
EnricoMaxwellOP4mo ago
No description
Bruno Pereira
Bruno Pereira4mo ago
I think you still need the allowHtml() But probably not and run npm run dev or npm run build to compile the css
EnricoMaxwell
EnricoMaxwellOP4mo ago
SelectColumn::allowHtml does not exist
EnricoMaxwell
EnricoMaxwellOP4mo ago
If I put the class manually here in option tag it works
No description
No description
Bruno Pereira
Bruno Pereira4mo ago
oh, its a column. I thought you were trying to add other colors to the form component. My bad
Dennis Koch
Dennis Koch4mo ago
Yeah, you switched from Form to Column 😅 SelectColumn doesn't support that
Bruno Pereira
Bruno Pereira4mo ago
Btw is there any particular reason behind of the select column not having like the native option and allowhtml option?
Dennis Koch
Dennis Koch4mo ago
Nobody did the work and implemented it 😅
Bruno Pereira
Bruno Pereira4mo ago
Is this a good thing to PR or is it planned already for v4?
Dennis Koch
Dennis Koch4mo ago
I don’t think it’s planned. If you want, go ahead.

Did you find this page helpful?