F
Filamentβ€’2y ago
johncarter

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
ZedoXβ€’2y ago
wire:click="save" wire:click="create"
johncarter
johncarterOPβ€’2y 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
Yasserβ€’2y 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
johncarterOPβ€’2y 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
ZedoXβ€’2y ago
Maybe you can checkout #drop-in-action ?
johncarter
johncarterOPβ€’2y 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 Harrinβ€’2y 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
johncarterOPβ€’2y ago
Cheers Dan, that sounds more like what i had going on before πŸ‘Œ
Want results from more Discord servers?
Add your server