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

Listener feature request #40

Open
wonsuc opened this issue Feb 21, 2019 · 2 comments
Open

Listener feature request #40

wonsuc opened this issue Feb 21, 2019 · 2 comments

Comments

@wonsuc
Copy link

wonsuc commented Feb 21, 2019

I have 2 scenarios that I have to show for a different loading dialog depending on if a specific class exists with the target element.

Currently, I'm calling it directly like this.
Class not exists: $treeDOM.LoadingOverlay('show');
Class exists: $treeDOM.LoadingOverlay('show', {zIndex: 10});

I wonder if this library supports the listener feature,
like before showing loading view, and after hiding loading view, etc…
Then I can handle the target element in the listener, and let it show different dialog views automatically.

I hope it could be possible.
Thank you!

@gasparesganga
Copy link
Owner

Basically you are asking for some events to be fired for the target element when a LoadingOverlay is being shown/hidden, right?
I had thought about that, but then I also thought that this is a pretty simple plugin and you can normally handle those things within the same code you use to show/hide it...

However, this is something it is worth thinking about for the next major version, which is due soon. Since it will radically change the way multiple LoadingOverlays work (instead of increasing a counter, a new one with completely different settings will be shown), it might make sense to include events.

I'll look into it, for sure!

@irtaza9
Copy link

irtaza9 commented Aug 10, 2024

any update on this?

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

No branches or pull requests

3 participants