F
Filament2y ago
tako

how to change save button positions?

hi all!
5 Replies
Dennis Koch
Dennis Koch2y ago
Change position to where? The save button is defined in the getFormActions() method on the Create/EditPage
tako
takoOP2y ago
i tried using extraAttributes
No description
tako
takoOP2y ago
i want to change the position of it from the upper right not below
Dennis Koch
Dennis Koch2y 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
takoOP2y ago
Thank you! it works!

Did you find this page helpful?