Applying loadMask() to a single element in extjs?

Viewed 34984

How to apply loadMask to only one element, and not the whole browser width-height?

default
enter image description here



here, only one element is masked, and a messageBox is in center, inside this element and not the whole display...
enter image description here


any ideas?

EDIT:

@Molecule , thanks, but this is when data is loading from some source, what i need is :

{
    xtype:"button",
    text:"Alert",
    handler: function(){

        Ext.Msg.show({
        title:'Save Changes?',
        msg: 'You are closing ?',
        buttons: Ext.Msg.YES,
        setLoading: // here somehow only mask parent element, and position alertBox...
    }

}
1 Answers
Related