Jorissu
Jorissu

Reputation: 313

Jquery mobile hide "spinner" by default in loadingmessage

By default, jquery mobile displays a "spinner" in the loadingmessage that is displayed when a page is loading.

When I manually show the loadingmessage, I can type this:

$.mobile.showPageLoadingMsg("a", "No spinner", true);

where the third argument is boolean "textonly" which disables the spinner on true.

What I want to accomplish is to disable the spinner by default for all page changes (where the loadingmessage is displayed while loading). The only properties I can configure on initializing the jquery mobile framework are

loadingMessage (string, default: "loading")
loadingMessageTextVisible (boolean, default: false)
loadingMessageTheme (string, default: "a")

Is there any way to disable the spinner by default?

Sources:

http://jquerymobile.com/test/docs/api/methods.html http://jquerymobile.com/test/docs/config/loadingMessageTextVisible.html

Upvotes: 1

Views: 3329

Answers (2)

MANISHDAN LANGA
MANISHDAN LANGA

Reputation: 2237

You can use:

.ui-loading .ui-loader
{
    display:none;
}

Upvotes: 3

techfoobar
techfoobar

Reputation: 66663

Add the following to the bottom of your page as a workaround for hiding the spinner:

<style>
.ui-icon-loading {
    opacity: 0;
}
</style>

Upvotes: 1

Related Questions