Rendering a Table in a Livewire Component within a Modal
I'm following the example provided at https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component, but I'm unable to display the table within a modal. When I use a route, the table functions correctly.
This works:
//web.php
//ListSolicitudesConductores:
//list-solicitudes-conductores.blade:
if I try this, work as expected in modal:
However, the following does not work with the same Livewire component and Blade template:
Thanks in advance
5 Replies
Sorry, i don't know how to quote correctly the code.
up
I have a modal with a table in it, this is my code:
and in that custom view there is only
are you sure you have fields in your table at all?
does this return the right columns?
SolicitudConductorTableComponents::schema() does return the right columns. Any other suggestions?
Solved. I was missing a blade file.
->modalContent(view('components.custom-list-solicitudes-conductores'))
<div>
@livewire('list-solicitudes-conductores')
</div>