Results 1 to 2 of 2

Thread: How to display the loading percentage when using the loading mask?

  1. #1

    Question How to display the loading percentage when using the loading mask?

    Does anyone know that whether it is possible to display the loading percentage when using the loading mask in Sencha Touch 1.0 to load the large amount of data? I'm using Phonegap+Sencha Touch 1.0.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    Regardless of how you would get the percentage, the way LoadMask works is it uses the mask method on the Ext.Element. This means that there is no built-in method. Try this out:

    Code:
    var el     = Ext.getBody(),
        myMask = new Ext.LoadMask(el, { msg : 'Please wait...' });
    
    myMask.show();
    
    myMask.msg = 'Test';
    
    setTimeout(function() {
        el.mask(Ext.LoadingSpinner + ' ' + myMask.msg + ' ', myMask.msgCls, false);
    }, 1000);
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •