Joost
Joost
FFilament
Created by Joost on 3/31/2025 in #❓┊help
Use x-on:click in a blade component to trigger an Action modal
Thanks! I found that in the docs but got an error, just found that that was because the x-on:click obviously needs to be in the blade view that belongs to the Livewire component. This is quite a powerful pattern I think, because I need to pass a parameter and then do a query. If I do {{ $this->myAction }} it will directly run the action and perform the query for every component loaded. Thanks again! 👍
5 replies
FFilament
Created by Joost on 3/31/2025 in #❓┊help
Use x-on:click in a blade component to trigger an Action modal
A much shorter an simpler version of the question is: Can you trigger a Filament Action that is defined in a Livewire component through an x-on:click in a blade component, instead of the buttion() defined on the Livewire component.
5 replies