Skip to content

fullWidth on Create and Edit Actions with modal #14719

Closed Answered by HelenaGwyn
HelenaGwyn asked this question in Help
Discussion options

You must be logged in to vote

I found what I need while reading more about Modals in the documentation.
Button order reversed also makes sense in a fullwidth modal alignment.
This is what I use now.

Actions\CreateAction::make()::configureUsing(function (Actions\CreateAction $action): void {
    $action
        ->modal()
        ->modalAlignment(Enums\Alignment::Center)
        ->modalIcon('heroicon-o-plus-circle')
        ->modalWidth(Enums\MaxWidth::Medium)
        ->modalFooterActionsAlignment(Enums\Alignment::Center)
        ->createAnother(false);
        ->modalSubmitAction(fn (Actions\StaticAction $action) => $action->icon('heroicon-o-plus-circle'));
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HelenaGwyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant