You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This would be an easy way to have the Pico spinner show on any DOM element other than the one triggering the request.
Describe the solution you'd like
We could just pass an optional CSS selector to PicoBusy() and have the spinner show on that element if provided, or on the triggering element otherwise.
This would simplify doing this when working with Pico (as asked here), and not having to code longer workarounds as discussed here.
Example code
Provide an example of how you imagine the feature working:
Is your feature request related to a problem? Please describe.
This would be an easy way to have the Pico spinner show on any DOM element other than the one triggering the request.
Describe the solution you'd like
We could just pass an optional CSS selector to PicoBusy() and have the spinner show on that element if provided, or on the triggering element otherwise.
This would simplify doing this when working with Pico (as asked here), and not having to code longer workarounds as discussed here.
Example code
Provide an example of how you imagine the feature working:
We would then use this as...
... to have the Pico spinner show in the button and not in the form.
Similar implementations
If available, provide links to similar features in other libraries:
Problem solved
Easy short way to show the Pico spinner on any element.
Additional context
I can provide a PR if this is considered useful, I already have it working on a project.
Confirmation
Please confirm the following:
The text was updated successfully, but these errors were encountered: