Apply filters button + Filters as a slide-over

2 questions really 1) I remember there was a PR that added an Apply button to filters so the table was only filtered when you clicked the button and not when the filters where changed. Do I remember correctly? 2) How do I show the table filters in a slide-over? I set the layout: FiltersLayout::Modal but how do I change it to a slide over?
5 Replies
ChesterS
ChesterSOP11mo ago
Ok found the 2nd one - need a custom action.
$table->
->filters($this->getTableFilters())
->filtersTriggerAction(
fn (Action $action) => $action
->button()
->slideOver()
->label(__('Filter')),
)
$table->
->filters($this->getTableFilters())
->filtersTriggerAction(
fn (Action $action) => $action
->button()
->slideOver()
->label(__('Filter')),
)
Don't even need the modal layout it seems ¯\_(ツ)_/¯
Xavi
Xavi11mo ago
@ChesterS do you solve 1st one?
Xavi
Xavi11mo ago
thanks!
c0nstruct0r
c0nstruct0r11mo ago
That was really helpful 🙂 ! Do you know how can I trigger/open that modal/slideOver filters outside of the table from another action ? I tried few options but without any success...
Want results from more Discord servers?
Add your server