Results 1 to 2 of 2

Thread: Loading message not working

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    19
    Vote Rating
    0
      0  

    Default Loading message not working

    Hi all,
    I am a newbie in Extjs. I want to create a simple login form and before form is loaded want to show a loading message. To do so my code is as below :
    this.items = [{
    xtype: 'form',
    listeners: {
    show: function() {
    this.loadMask = new Ext.LoadMask(this.body, {
    msg: 'Loading. Please wait...'
    });
    }
    },
    frame: 'true',
    items: [{
    xtype: 'textfield',
    name: 'email',
    fieldLabel: 'Username',
    //vtype: 'email',
    allowBlank: false
    }, {
    xtype: 'textfield',
    name: 'password',
    fieldLabel: 'Password',
    inputType: 'password',
    style: 'margin-top:15px',
    allowBlank: false,
    //minLength: 8
    }]
    }];

    Though the form loads it doesn't show the loading spinner before form loading...please help me in doing the same.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Why not use the setLoading method on any component?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

Posting Permissions

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