F
Filament•9mo ago
Prosp30

Modal footer actions alignment

Hi there, I am looking through the docs, but cant seem to figure it out. Is it possible to align action modal footer buttons to the right, instead of the left? I know that I can do it in other parts by using public function getFormActionsAlignment(): string|Alignment { return Alignment::End; } But I am not sure how to acomplist it in the modal action?
No description
Solution:
->modalFooterActionsAlignment() iirc
Jump to solution
3 Replies
Solution
awcodes
awcodes•9mo ago
->modalFooterActionsAlignment() iirc
Jon Mason
Jon Mason•9mo ago
This isn't working for me. I know this is in the source code somewhere and I could probably figure it out, but I've been digging and can't find it 🤷‍♂️ I'm using a modal in a livewire component, so I need to use a method in my class. ok, I did find it in the source code, but this isn't working:
public function getModalFooterActionsAlignment(): string|Alignment
{
return Alignment::End;
}
public function getModalFooterActionsAlignment(): string|Alignment
{
return Alignment::End;
}
fyi, just used CSS and it works fine. I don't know why I ignore the tried and true stuff in favor of filament as if there's no other way to do it. lol
awcodes
awcodes•9mo ago
Without the full code it’s hard to say why it isn’t working, but based on what you have shared I don’t see why it wouldn’t.

Did you find this page helpful?