filtersForm with action button
Hello,
i create a simple report page with filter form.
The filters work properly but how do I update the filters with an action button instead of the simple change event?
And How do i create a reset button that reset all filters?
i create a simple report page with filter form.
The filters work properly but how do I update the filters with an action button instead of the simple change event?
And How do i create a reset button that reset all filters?
public function filtersForm(Form $form): Form
{
return $form
->schema([
Section::make()
->schema([
Select::make('group_id_filter')
->options(Group::all()
->pluck('descrizione', 'id'))
->multiple()
->searchable(),
Select::make('activity_id_filter')
->options(Activity::query()
->where('tipo','gaming') // ToDo Usare gaming o classifica???
->pluck('titolo', 'id'))
->multiple()
->searchable()
])
->columns(3),
]);
}public function filtersForm(Form $form): Form
{
return $form
->schema([
Section::make()
->schema([
Select::make('group_id_filter')
->options(Group::all()
->pluck('descrizione', 'id'))
->multiple()
->searchable(),
Select::make('activity_id_filter')
->options(Activity::query()
->where('tipo','gaming') // ToDo Usare gaming o classifica???
->pluck('titolo', 'id'))
->multiple()
->searchable()
])
->columns(3),
]);
}