How to mask the whole page body with ExtJS

Most of the ExtJS components have a config to mask the body with loadMask, for example

var grid = new Ext.grid.GridPanel({ 
        loadMask: true,
        id: 'grid-menu',
        store: store,
        layout: 'fit',
        margins: '0 5 5 5',
        autoExpandColumn: 'title',
        autoHeight: true,
	//...
})

If you want to mask the whole page body, it’s as simple as

Ext.getBody().mask();

Or if you want to mask with a message

Ext.getBody().mask('Processing ...');

Related posts:

Share

About number.0