1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    153
    Vote Rating
    1
    JohnT is on a distinguished road

      0  

    Default Can EXT do masking?

    Can EXT do masking?


    It's been cold, snowey, and I have been studying all day!

    One thing I would like to know is, can EXT handle masks? For instance, would it be able to attach a click handler to just the snowman in the following photo, and not the box around it?



    Thanks!

    John T.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    8
    TommyMaintz will become famous soon enough

      0  

    Default


    update: i fixed the namespacing for you, also note using override, i accidentily used extendX

    This will be fixed in the new version Jack will release but as a temporary fix you could use this:

    Code:
    YAHOO.override(YAHOO.ext.Element, {
        mask : function(){
            if(this.getStyle('position') == 'static'){
                this.setStyle('position', 'relative');
            }
            if(!this._mask){
                this._mask = Ext.DomHelper.append(this.dom, {tag:'div', cls:'ext-el-mask'}, true);
            }
            this.addClass('ext-masked');
            this._mask.setDisplayed(true);
            return this._mask;
        },
        
        
        unmask : function(removeEl){
            if(this._mask){
                removeEl === true ?
                   this._mask.remove() : this._mask.setDisplayed(false);
            }
            this.removeClass('ext-masked');
        }
    });
    and css:
    Code:
    .ext-el-mask {
    	z-index:20000;   
       position:absolute;
       top:0;
       left:0;
       -moz-opacity: 0.5;
       opacity:.50;
       filter: alpha(opacity=50);
       background-color:#CCC;
    	width:100%;
    	height:100%;
    	zoom:1;
    }
    .ext-masked {
    	overflow:hidden !important;
    }
    .ext-masked select,.ext-masked object,.ext-masked embed{
    	 visibility:hidden;
    }

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    153
    Vote Rating
    1
    JohnT is on a distinguished road

      0  

    Default


    Wow thanks man! I was expecting a "Not Possible" as an anwer.

    Bookmarking this one.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar