F
Filament14mo ago
lazydog

Display multiple data (list) in a tabs

Hello, I have included the code in the attached image. Could you please provide me with suggestions or a solution for displaying multiple rows of data on each tab?
No description
7 Replies
toeknee
toeknee14mo ago
As a table you would need to build a custom livewire component loading in the table builder. Or you can use a grid and render fields in a form with:
Grid::make(2)->schema([TextInput::make('my_field'), TextInput::make('my_field2')]
Grid::make(2)->schema([TextInput::make('my_field'), TextInput::make('my_field2')]
lazydog
lazydogOP14mo ago
hi @toeknee thanks for your suggestion, I appreciate it a lot. But, my aim is like a Filament Relation Manager (listing only, multiple table rows). Would it be okay to you if you guide me on this?
toeknee
toeknee14mo ago
I don’t think that’s easily possible out of the box
lazydog
lazydogOP14mo ago
I already done the custom livewire component and implements the HasTable, its working fine but I cant embed it on Tabs\Tab.
toeknee
toeknee14mo ago
Even with a ViewField ?
lazydog
lazydogOP14mo ago
ViewField is for Form, but I've done it already using custom infolist then in view I called the custom livewire component where I implemented the HasTable. It works fine, but don't know if it is the right way 😄
toeknee
toeknee14mo ago
If it works then its fine hehe
Want results from more Discord servers?
Add your server