laravel-livewire-modals icon indicating copy to clipboard operation
laravel-livewire-modals copied to clipboard

Wire:loading on the trigger element

Open emildayan opened this issue 4 years ago • 1 comments
trafficstars

Some modals can be pretty heavy to load / setup, thus I like to display a loader on the button that triggers a modal.

I am guessing this won't be possible here, as wire:target has nothing to really target. Right?

emildayan avatar Sep 25 '21 19:09 emildayan

You'd have to add a method in your component that calls the emit. Then you can use wire:target on that method

bastinald avatar Sep 25 '21 19:09 bastinald