vue-loading-overlay icon indicating copy to clipboard operation
vue-loading-overlay copied to clipboard

Some kind of showDelay option would be nice

Open sir-gawain opened this issue 5 years ago • 1 comments

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});

sir-gawain avatar Aug 25 '20 13:08 sir-gawain

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

juni0r avatar Mar 27 '22 12:03 juni0r