How to have 2 fields per row in full width tab?
I've used
Tabs::make('Tabs')->columnSpanFull()->tabs()
to create full width tabs. Now I can't seem to have 2 fields per row within the tab.
It probably sounds noobish but I just started filament now and been trying to get used with docs but unable to figure it out.11 Replies
The fields need to have their own columnSpan. The default is 2 columns per each parent component. If that makes sense.
To have 2 fields per row, I'll need to set
columnSpan(6)
for both? I am assuming 12 cols per row. Is this correct? I've tried different values but only TextArea fields get affected which seem to considering it as cols
value.The default is 2.
Sounds like you might need a layout component.
could you provide the code that are you using?
?
No. I want the tab to take up full width but I want certain fields to render as if each is in it's own column within a row.
tab to be full width as in SS but I want the Title & Slug in one row
Solution
use
Group
@MacTavish did it work?
Yes, Thank you!
How Do I mark as solved?