F
Filament14mo ago
Phuc Le

Use Fieldset in Table Filter

Currently if I use Fieldset for SelectFilter, it will throw this error: Method Filament\Forms\Components\Fieldset::table does not exist.
Fieldset::make('Test')
->schema([
SelectFilter::make('test_1'),
SelectFilter::make('test_2'),
])
Fieldset::make('Test')
->schema([
SelectFilter::make('test_1'),
SelectFilter::make('test_2'),
])
I can use 2 Select forms and wrap them inside a Filter like this:
Filter::make('serp')
->form([
Fieldset::make('Test')->schema([
Select::make('test_1'),
Select::make('test_2'),
]),
]);
Filter::make('serp')
->form([
Fieldset::make('Test')->schema([
Select::make('test_1'),
Select::make('test_2'),
]),
]);
But I have to combine them into one query method and declare the indicator manually why using SelectFilter, it's done by Filament.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server