Backed enums for card attributes #9
Jonas-johansen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if card attributes supported backed enums or allowed formatting via a formatStateUsing method.
Use case:
I'm currently using a card attribute based on a backed enum. In the layout, it displays the raw enum value, but ideally, it should render the label via Filament's ->getLabel() method. Even better would be support for dynamic colors using ->getColor().
Beta Was this translation helpful? Give feedback.
All reactions