F
Filamentβ€’17mo ago
Nils Domin

Forms: How can I align the save/cancel buttons if my section layout is "aside"?

No description
5 Replies
LeandroFerreira
LeandroFerreiraβ€’17mo ago
//EditPage.php or CreatePage.php
public static string $formActionsAlignment = 'end';
//EditPage.php or CreatePage.php
public static string $formActionsAlignment = 'end';
Nils Domin
Nils DominOPβ€’17mo ago
Great thank you! πŸ˜ƒ I must have overlooked that in the documentation. πŸ™ˆ
krekas
krekasβ€’17mo ago
you haven't. it's not documented as I can see
Nils Domin
Nils DominOPβ€’17mo ago
Okay, thanks πŸ˜‰
MedoLaravel
MedoLaravelβ€’17mo ago
Instead of repeating this line of code on every page ... how to set it globally? I got it
public function panel(Panel $panel): Panel
{
return $panel
->bootUsing(function () {
Page::formActionsAlignment('end');
})
}
public function panel(Panel $panel): Panel
{
return $panel
->bootUsing(function () {
Page::formActionsAlignment('end');
})
}

Did you find this page helpful?