PDA

View Full Version : How to set timing of wait message.



19 Nov 2013, 1:39 AM
Hi,

I want to show below message for 2 min.

Ext.Msg.wait('Please wait ...','Loading data ...');

How to set timing so this message will continue for next 2 min.

Thanks

Farish
19 Nov 2013, 6:02 AM
Ext.Msg.wait('text', 'title', {
interval: 500,
duration: 2000,
text: 'Updating...',
fn: function(){
this.updateText('Done!');
this.up('window').close();
}
});

See the documentation and example code here: http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.ProgressBar-method-wait

If you dont use close(), you will see that after the duration has expired (here 2 seconds), the text will be changed to "Done!" in place of "Updating..."

19 Nov 2013, 6:33 AM
Thanks for quick reply =D>