Align buttons in modal
I have a modal and want to align the two buttons next to each other. Any idea how this can be done? Preferably I would want to rename 'Close' to 'Cancel' also.
The modal comes from an Infolist:
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
TextEntry::make('name'),
TextEntry::make('published_price')
->formatStateUsing(function ($state) {
$formatter = new NumberFormatter(app()->getLocale(), NumberFormatter::CURRENCY);
return $formatter->formatCurrency($state / 100, 'eur');
}),
Actions::make([
Action::make('Publish')
->label('Publish')
->url(fn ($record): string => self::getUrl('checkout', [$record])),
]),
]);
}
1 Reply
maybe using
->extraModalFooterActions([...])
in the ViewAction?
https://filamentphp.com/docs/3.x/actions/modals#adding-an-extra-modal-action-button-to-the-footer