Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Some kind of showDelay option would be nice #59

@sir-gawain

Description

@sir-gawain

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions