How can I give ToggleButtons custom colors?
TicketsStatus has a name and ticket_color column, but how can I give to each button each respective color? Is that even possible?
6 Replies
you can add a class name
and style it with css
How do you mean?
The color as you stated
->colors(TicketsStatus::all()->pluck('ticket_color', 'id'))
are only when someone selects a toggle.
Is that not working our did you mean the colors is not working at all?ticket_color
is a hex string, created from the ColorPicker form component. The colors are not working at all, in the sense that when you select something, instead of getting the correct color, I get a transparent color. I see a lighttt hue in the background when I click on smth, but again, not the correct colroMaybe something like this:
Wow, will try! Thanks