FRAMEWROK7 pre-loading hint modal box (preloader Modal) usage

Source: Internet
Author: User

1, pre-loading modal introduction

(1) Preload modal can be considered as a modal box containing the load indicator (preloader) and the related title.
(2) One of its functions is to prompt some background activities (like Ajax requests). The other is to block any user actions during this activity.

2, preload the use of modal (default caption)

If you use so that you do not specify title, the default caption is displayed. The default title is "Loading", which can be modified when the APP is initialized. Refer to my previous article: Framework7-Modify the Modal box default text (title, Confirmation | Cancel button, login box prompt)

$$ ('. Open-preloader '). On (' click ', function () {
Myapp.showpreloader ();
settimeout (function () {
Myapp.hidepreloader ();
}, 2000);
});

3, preload the use of modal (custom headers)

In addition to unifying the caption text when FRAMEWORK7 is initialized, I can also set the title separately each time I use the preload modal.


$$ ('. Open-preloader-title '). On (' click ', function () {
Myapp.showpreloader (' Uploading photos ... ')
settimeout (function () {
Myapp.hidepreloader ();
}, 2000);
});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.