Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6164907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:04:25+00:00 2026-05-23T22:04:25+00:00

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

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:04:26+00:00Added an answer on May 23, 2026 at 10:04 pm

    Every component has it’s own loadMask property. You can use it by calling YourComponent.setLoading. Here is fiddle to illustrate what I’m talking about.

    Another way is using new Ext.LoadMask(YourComponent.el, {msg:"Please wait..."});. You can look at usage in my fiddle.

    UPDATE

    Here is code example which shows how to apply ExtJS4 loadMask and MessageBox to specified Widget

    Ext.create('Ext.panel.Panel', {
        width: 600,
        height: 400,
        title: 'Border Layout',
        layout: 'border',
        items: [{
            title: 'West Region is collapsible',
            region:'west',
            xtype: 'panel',
            width: 400,
            id: 'west-region-container',
            layout: 'fit'
        },{
            title: 'Center Region',
            region: 'center',
            xtype: 'panel',
            layout: 'fit',
        }],
        renderTo: Ext.getBody()
    });
    var myMask = new Ext.LoadMask(Ext.getCmp('west-region-container').el, {useMsg: false});
    myMask.show();
    var msg = Ext.Msg.show({
        title:'Save Changes?',
        msg: 'Bla-Bla',
        buttons: Ext.Msg.OK,
        modal: false
    });
    msg.alignTo(Ext.getCmp('west-region-container').el, 'c-c');
    

    And here is try-it-yourself example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to apply one shadow for menu and page itself? Here is
I want to apply a CSS rule to any element whose one of the
I'm trying to apply a style that will highlight the whole row if one
I want to apply a zebra striping style to my mx:List, the only way
I'm attempting to apply Ayende's order search from here to an existing index. The
I apply a default string to the beginning of the Subject field with all
I apply: $(.newContentLink).click(function() { $(#test).append(1); }); On this: <span id=contents> <input class=newContentLink type=submit style=width:
I'm trying to apply a CSS mask to an element that also has child
Is it possible to apply / create a YUI Button by using an element's
How to apply different touch animations in one application like(drag,single touch,multiple touch and others).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.