Table inside Infolist
Hello to all,
I would like to know if there is a way to insert a table into Infolist. I have infolist tabs, and in some of those tabs, I would like to have a table.
If not, I don't know if it would be possible to make a more complex structure, where there would be tabs containing infolist on one side and tables on the other.
Thanks for the advice, cheers
Solution:Jump to solution
Make a livewire component that uses the table builder then you can just add it to the info list.
https://filamentphp.com/docs/3.x/infolists/advanced...
9 Replies
(note: I don't want to do it with relations)
same question ?
Same question as what? I have not found something similar in the list of questions
sorry , I mean I am also ask the same question , I spent hours of search but nothing answers
Solution
Make a livewire component that uses the table builder then you can just add it to the info list.
https://filamentphp.com/docs/3.x/infolists/advanced
I've done it using a custom livewire component by what awscode suggest but I don't know if my steps are correct. This is the code in my livewire custom page:
inside the
->view('infolists.components.user-login-logs')
you just need to call the {{ $this->table }}
It works 🙂
I also used the code from: https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
Btw, in Filament 3, how could the table grow to 100% (remove the tab padding and remove the external table border). Is there any way to do that without CSS? Or what CSS could be appropiate for this?
Ok, let there be CSS then 🙂