F
Filament9mo ago
nowak

Filter modal layout footer actions not centered

I have created a custom filter for my table, using a ToggleButtons form field. When I use the Modal filter layout, I am able to align the modal title to the center by using this:
php
->filtersTriggerAction(
fn (Action $action) => $action
->button()
->label('Filter')
->closeModalByClickingAway(true)
->modalAlignment(Alignment::Center),
)
php
->filtersTriggerAction(
fn (Action $action) => $action
->button()
->label('Filter')
->closeModalByClickingAway(true)
->modalAlignment(Alignment::Center),
)
But the footerActionsAlignment does not seem to follow, as they are stuck in the Start alignment Is this a bug, or should I do something else to get set footerActionsAlignment::Center?
No description
3 Replies
nowak
nowakOP9mo ago
Bump
Andrew Wallo
Andrew Wallo9mo ago
Did you try ->modalFooterActionsAlignment() as well? Maybe you did but I just don’t see it defined in your code.
nowak
nowakOP9mo ago
Yes I tried this:
->filtersTriggerAction(
fn (Action $action) => $action
->button()
->label('Filter')
->closeModalByClickingAway(true)
->footerActionsAlignment(Alignment::Center)
->modalAlignment(Alignment::Center),
)
->filtersTriggerAction(
fn (Action $action) => $action
->button()
->label('Filter')
->closeModalByClickingAway(true)
->footerActionsAlignment(Alignment::Center)
->modalAlignment(Alignment::Center),
)
Which gives me this error: Method Filament\Tables\Actions\Action::footerActionsAlignment does not exist."
Want results from more Discord servers?
Add your server