Grouping by enum
Hi guys, is it possible right now in v3 to group table rows by attribute that is casted as enum?
7 Replies
have you tried?
Yeah, I am getting error:
Object of class App\Enums\OrderStatus could not be converted to string
Your enum class must implements
Filament\Support\Contracts\HasLabel
Thanks for the advice, I didn't read this in the documentation. But I have another problem:
I think it works, but there is some HTML markup printed. I also tried it with another group. I also disabled
->groupsInDropdownOnDesktop()
method and it looks like this:I would like to help and make a PR, but unfortunately I can't find the cause.
please open an issue then
or check open PRs, maybe theres one to fix already