F
Filament14mo ago
mxc

Modal Form in Action Specify Columns?

Hi all, I have an action that pops up a model form
Action::make("Add")
->icon("heroicon-m-plus")
->label("Add")
->form(...
Action::make("Add")
->icon("heroicon-m-plus")
->label("Add")
->form(...
The form method takes an schema array as input. How can I tell it I want it split in two columns? ->columns(2) doesn't work. This is in a Livewire component.
Solution:
Wrap your form fields in a Grid and proceed as normal.
Jump to solution
4 Replies
Solution
awcodes
awcodes14mo ago
Wrap your form fields in a Grid and proceed as normal.
mxc
mxcOP14mo ago
Thanks @awsqed
awsqed
awsqed14mo ago
you're welcome tofu
Want results from more Discord servers?
Add your server