Reposition default page buttons

How do I reposition the default Save/Create buttons in a resource page? Ideally within a Card component but at the top right would also be fine.
8 Replies
ZedoX
ZedoX2y ago
wire:click="save" wire:click="create"
johncarter
johncarterOP2y ago
Thanks for this. Not wanting to sound completely stupid, but how can I add those actions as part of a form's schema?
Yasser
Yasser2y ago
You render your own view, you don't use filament's actions and you add your own buttons within the form tags of the view
johncarter
johncarterOP2y ago
Thank you very much. I always forget about that option. Hang on. So are talking about creating a new View form component with buttons in it?
ZedoX
ZedoX2y ago
Maybe you can checkout #drop-in-action ?
johncarter
johncarterOP2y ago
Yeah i tried that, but when I put save in the action i got some exceptions. I could have sworn that I had done this natively before.
Dan Harrin
Dan Harrin2y ago
i think you can add an action into the getActions() array of the page which call save() on the LW component getActions() appear in the top right
johncarter
johncarterOP2y ago
Cheers Dan, that sounds more like what i had going on before 👌

Did you find this page helpful?