F
Filament2mo ago
Leslie

How to show a Badge on Edit Form

Hey folks, I have a status enum column on my model, when I edit a resource I want to show the current status as a badge on the edit form? Amy idea how i can do this? My enum has the getLabel, getColor, etc. implemented.
2 Replies
Matthew
Matthew2mo ago
A badge is meant for display, it doesn't flow as an edit. You could use toggle buttons to get a similar effect, or you could have an info list with hint action to specific edits...
No description
Rolland
Rolland2mo ago
can try using extraAttributes()

Did you find this page helpful?