Component as row in TableBuilder
I have a table with a custom View for the row as follows:
this renders the view correctly.
But this view is just one part of the component, there is also the
Because the filament table only renders the view and does not use the component the properties are not available inside the blade view.
It is working if i set the properties above the html code inside the blade view via:
But i would like to render the whole component as my table row because i am using this component also in other parts of my application with the properties inside the component and not the blade view.
Is that possible anyhow?
Thanks in advance
Solution:Jump to solution
I think you can render the LW component in the view that you created
```html
<div>
<livewire::your-component />...
4 Replies
this is a view, not a LW component. If you want to add custom properties, you should add in the ListPage
ListPage
View
Thanks for the very quick reply.
I am using this component also in other places in the application and i want to reuse/share the view because the view is the same no matter where the row is shown.
Sometimes in filament table, sometimes in other blade views via:
So is there a way to render a component inside the filament table as row or do i need to set the default values for the properties in the blade view and again in the component?
Thanks alot
Solution
I think you can render the LW component in the view that you created
awesome. why didnt i think about that.
I made a wrapper blade view with just the div and <livewire:: ... inside.
Thanks alot