F
Filament17mo ago
tako

how to change save button positions?

hi all!
5 Replies
Dennis Koch
Dennis Koch17mo ago
Change position to where? The save button is defined in the getFormActions() method on the Create/EditPage
tako
takoOP17mo ago
i tried using extraAttributes
No description
tako
takoOP17mo ago
i want to change the position of it from the upper right not below
Dennis Koch
Dennis Koch17mo ago
You to put it into getAction() then and not getFormActions()
protected function getActions(): array
{
return [
Action::make('save')
->label(__('filament::resources/pages/edit-record.form.actions.save.label'))
->action('save')
->keyBindings(['mod+s']),
];
}
protected function getActions(): array
{
return [
Action::make('save')
->label(__('filament::resources/pages/edit-record.form.actions.save.label'))
->action('save')
->keyBindings(['mod+s']),
];
}
https://discord.com/channels/883083792112300104/1110223493360013384/1110237204682395758
tako
takoOP17mo ago
Thank you! it works!
Want results from more Discord servers?
Add your server