Filtering Enum Options
How would one filter enum options? I don't want to include all enum options; only a subset.
This gives an exception:
I've seen seen the option,
Additionally, I can always do a rigmarole of
This gives an exception:
Filament\Forms\Components\ToggleButtons::isOptionDisabled(): Argument #2 ($label) must be of type string, App\Enums\Party givenI've seen seen the option,
disableOptionWhen, but I don't want to disable the option, I want to hide it entirely from view.Additionally, I can always do a rigmarole of
collection(..enum)->filter within options but that will eliminate icons, colors, and labels defined in the enum.