Trick to have element be alone in a 2 column row?
Hi,
I have a 2 columns setup in a Form.
I want 1 element to take 1 column, then nothing next to it, then on the following row, the remaining elements.
How do I get my first row setup properly? There has to be a trick to it, cant figure it out
7 Replies
Simple;
First element:
->columnSpanFull()
Next Elements:
->columnSpan(1)
or wrap two elements in a 'Grid' element too with a columnSpanFull.
but I don't want the first element to take the full row. Out of the 2 columns, I want the first element to take 1 column, then an empty space, then next row, with two elements (each 1 column)
| Element 1 | Nothing |
| Element 2 | Element 3 |
basically I want the first element (Name) to be the first, and only element on the first row
Wrap it in a
Group
or something?
eg
Solution
better example
ok yes, that worked thanks!
No docs for Group?
Hmm apparently not π€ You can have a look at Grid/Split, might be better to use one of those?
https://filamentphp.com/docs/3.x/forms/layout/split
https://filamentphp.com/docs/3.x/forms/layout/grid
No but grid works as previously recommended π