reactive method in selectfilter
How can I use reactive method in selectfilter class?
11 Replies
https://filamentphp.com/docs/2.x/forms/fields#dependant-selects you can have an idea from here
Filament\Tables\Filters\SelectFilter::reactive does not exist
i got that error when i tried to use reactive method
Then they hide it for some reason.. you can create your own filter and use FormSelect https://filamentphp.com/docs/2.x/tables/filters#custom-filter-forms
Filament
Filters - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
all filter fields are reactive() by default
how can I get the variable?
i got error the error when i called $get as the parameter in other component class method function:
Unable to resolve dependency [Parameter #0 [ <required> $get ]]
please explain what you’re trying to achieve
i want a selectfilter component dependant to another..
in my case,
try using Filter instead of SelectFilter
then putting both Select components in a custom form()
then you can use $get as normal
what did you mean by this?
check the docs for “filter forms”
hmm okey..
i got it..
thanks..