Ext.LoadMask
Files
A simple utility class for generically masking elements while loading data. If the store config option is specified, the masking will be automatically synchronized with the store's loading process and the mask element will be cached for reuse. For all other elements, this mask will replace the element's Updater load indicator and will be destroyed after the initial load.
Example usage:
// Basic mask:
var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
myMask.show();
Available since: 1.1.0
Config options
The text to display in a centered loading message box (defaults to 'Loading...')
Defaults to: 'Loading...'
Available since: 1.1.0
The CSS class to apply to the loading message element (defaults to "x-mask-loading")
Defaults to: 'x-mask-loading'
Available since: 1.1.0
True to create a single-use mask that is automatically destroyed after loading (useful for page loads), False to persist the mask element reference for multiple uses (e.g., for paged data widgets). Defaults to false.
Available since: 1.1.0
Properties
Read-only. True if the mask is currently disabled so that it will not be displayed (defaults to false)
Defaults to: false
Available since: 1.1.0
Methods
Create a new LoadMask
Available since: 1.1.0
Parameters
- el : Mixed
The element or DOM node, or its id
- config : Object
The config object
Returns
Disables the mask to prevent it from being displayed
Available since: 1.1.0
Enables the mask so that it can be displayed
Available since: 1.1.0
Show this LoadMask over the configured Element.
Available since: 2.3.0