Hi!
Is there any way to set default value for EnumFilter?
By default, you need to define default() method inside your filter class, but I don't see any method to do it here.
Optional hack is to do something like:
(new EnumFilter('foo', BarEnum::class))->withMeta([
'currentValue' => BarEnum::Baz
]),
Hi! Is there any way to set default value for
EnumFilter
? By default, you need to definedefault()
method inside your filter class, but I don't see any method to do it here.Optional hack is to do something like:
I can submit PR if desired.