F
Filament3mo ago
Bruno

Modal: Livewire component

How would I open a livewire modal on the test button? This way it doesn't open my modal
No description
No description
2 Replies
Husky110
Husky1103mo ago
with ->action you actually tell Filament what to do when you click "Save" on your modal. what you want is Action::make('meep')->form()
awcodes
awcodes3mo ago
The key here is where the actual modal / livewire component is rendered. For reference $this inside of the action isn’t a livewire component. But you can inject $livewire in the action callback and use $livewire->dispatch(). Just don’t know enough about the whole setup and what you are trying to do to give a more solid answer.
Want results from more Discord servers?
Add your server