Can a custom infolist ViewEntry have a FilamentTable?
I am creating a custom infolist viewentry and on the ViewEntry class I tried to add the
HasTable
and HasForms
but can't seem to get it to work. Any advice?14 Replies
do you really expect someone to help you if you don't show code?
You may be able to do it with a custom Livewire component. The ViewEntry renders a Blade view, the Blade view includes the Livewire component, the component implements the Table. Something to try.
@pboivin Thank you. I already tried this.
But I get an error
and this is what I have on the Livewire Component
and this is the blade
not sure why I get the error on the View Page of the resource and not on the livewire component
You are using table wrong. Check the docs how to use it
@krekas I did and here is what I see in the docs https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component#adding-the-table
Why not just help with what is wrong and stop being a dick about it. I see you doing the same on the github discussions as well. If you cannot help why be here.
@pboivin any help is appreciated.
Wait you don't have any columns in your table first
but that still doesn't change the error. I have already tried that.
In your familymembers the view provided is different from the on in the error
exactly, that is what I mentioned above as to why I am getting the error for the View page of the resource and not the livewire component
the
view()
method takes the livewire view, so is there a way to set the Livewire component class instead of the view?
@leandro_ferreira any advice on this issue?wait you made a custom view right? with
php artisan make:infolist-layout
? so shouldn't you call it instead of view?Entry isn't a Livewire component
@.abishek The ViewEntry should render a regular Blade view, and then the Blade view should contain the Livewire component.
ok, let me try that
@pboivin thank you that worked. appreciate the help