How to set custom badge color based on color picker.
How to set custom badge color based on color picker or filament-tailwind-color-picker.
Maybe I have to use: ViewColumn with custom view ??
How to setup this ?
4 Replies
Where is the badge?
In table:
I want to have custom color based on $record->crm_level->color_picker
Color is in crm_level table in color_picker column
Try
Thank you for your answer, but the function ->color() seems to only accept arguments: 'primary', 'success' , etc... . I probably need to write my own template for bage.
Ok i definied colors from tailwind default color palette in boot():
Then i can use it in badge color()