Load custom component inside action modal
Ok I think I'm missing something obvious here, but is there a way to load a custom Livewire component inside a modal action?
Here's an example of what I've tried
but it doesn't work (the modal is empty)
This is what my component looks like
6 Replies
->modalContent(view('my-view'))
π¬ is there no other way? It feels weird having to create a view just to load a Livewire component, especially since there's already a
->livewire()
method on the actionSolution
?
u dont even need the ->livewire() method
π Yeah ok, I guess this avoids creating the file. Still feels a bit hacky having to manually render the component. I thought this would be a common enough use case to be supported out-of-the-box by Filament. Anyway, I'll accept you answer since it does work. Thank you!
that is the common method used by manu