Can I make getTab() in 2 lines?
Hello all,
In my Filament project, I have 6 to 8 different types of payments represented by filter tabs in the getTabs() function. Currently, these tabs are displayed in a single line, making the interface look congested. Is there a way to arrange these tabs in multiple lines or columns for a cleaner layout? Thanks in advance for your time and help.
@Dennis Koch
7 Replies
Please read the #✅┊rules and do not tag people, it is likely why your post went ignored.
I suspect you are asking for an accordion function which is not currently possible, but can you provide a screenshot so we can understand better what you mean?
Firstly, please accept my sincere apology for my mistake in tagging directly.
It's not the accordion I want; I want to have the same getTabs() filters of my table, but in two separate lines, as shown in the image below. Kindly take a look at the screenshot.
AFAIK this isn't possible. I took a brief look into into a while back.
Out of the box no. Could possibly do it with some fancy grid css. But it would be fairly complicated.
Thank you for your reply @sm.20 & @awcodes . Not possible! I felt so. I tried many things like giving array1 and array2, then using array_merge(array1, array2), but no success."
you can probably take a look at
ListRecords
and the blade and create your own with secondaryTabs
or extend tabs to support multi level tabs.
I'm sure other people would appreciate it.Thanks for your reply @sm . I tried and can see two lines of getTabs() but it is a copy of the first one, lol. I think I should leave it here.