PDA

View Full Version : ExT JS 4.1 LoadMask



Mteixeira
31 Jul 2012, 8:45 AM
Hey all :)

I'm new to sencha and i have a question. I successfully create a loadmask but would like to make it larger that it's by default. So i've done this:


new Ext.LoadMask(Ext.getBody(), {msg: message, height: '300px'});

but the loadmask stays the same. I'm doing something wrong or this just is impossible to achieve?

scottmartin
31 Jul 2012, 8:58 AM
Height is numeric: height: 300

Scott.

Mteixeira
31 Jul 2012, 9:03 AM
I've tried that already but doesn't work...

scottmartin
31 Jul 2012, 10:31 AM
This should give you a larger panel .. you will have to update the display template



var panel = Ext.create('Ext.panel.Panel', {
title: 'Hello',
width: 200,
height: 200,
html: '<p>World!</p>',
renderTo: Ext.getBody()
});

var myMask = new Ext.LoadMask(panel, {msg:'Please wait...', height: 50});
myMask.show();
‚Äč

37642

Scott