Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire:loading on the trigger element #8

Open
emildayan opened this issue Sep 25, 2021 · 1 comment
Open

Wire:loading on the trigger element #8

emildayan opened this issue Sep 25, 2021 · 1 comment

Comments

@emildayan
Copy link

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?

@bastinald
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants