Infolist not showing
Hey guys, I'm trying to show an infolist on a custom dashboard, but so far everything I've tried hasn't been working. I'm implementing all the contracts and traits as reported on the docs, but the infolist doesn't show.
In fact, the infolist method doesn't even get called (I tested it with a dd(1);). It doesn't matter if it's called infolist or somethingInfolist, it still doesn't get called.
I couldn't find anything on the docs, and I couldn't find a solution looking into Filament's codebase, so I'd appreciate if someone could help me 🙂
4 Replies
Hey guys does someone have any idea abt this?
I think the problem is the default dashboard view doesn't support infolists. Is there a way to enable infolists without publishing the view?
You need to render the infolist in the dashboard view.
https://filamentphp.com/docs/3.x/infolists/adding-an-infolist-to-a-livewire-component#adding-the-infolist
have you managed to get this to work? I'm having the exact issue, wanting to add an infolist in edit window but whatever i do, it wouldn't show.
Yes I did, following what @sumardi said. You have to create a custom view for the dashboard and render the infolist onto that. The default dashboard view, differently from the Resources pages, doesn’t render an infolist element