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

Some kind of showDelay option would be nice #59

Open
sir-gawain opened this issue Aug 25, 2020 · 1 comment
Open

Some kind of showDelay option would be nice #59

sir-gawain opened this issue Aug 25, 2020 · 1 comment

Comments

@sir-gawain
Copy link

sir-gawain commented Aug 25, 2020

I have something like this in my code:

watch: {
            loading: function (loading) {
                if (loading) {
                    this.loader = this.$loading.show();
                } else {
                    this.loader.hide();
                    this.loader = null;
                }
            }
},

and then on an ajax call i do something like this:

methods: {
            async loadProjekte() {
                this.loading = true;
                this.projekte = await Projekt.get(); // call to server by ajax
                this.loading = false;
            },
},

This works very well, but on short ajax calls, the overlay pops up and hides only microseconds later.
It would be very nice to have an option to show() or a global option, that delays the display for some time for me:

this.$loading.show({showDelay: 500});
@juni0r
Copy link

juni0r commented Mar 27, 2022

Is this still a consideration? I'd be happy to see this implemented.

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