PDA

View Full Version : Setting mask text using panel maskDisabled



Eric24
24 Sep 2009, 7:34 AM
I know I can use getEl().mask('Text') to set the mask text on a panel, but since there is the nifty maskDisabled config which does the masking automatically, is it possible to set some text into the mask used by maskDisabled?

If not, it seems like a pretty good feature. Maybe if maskDisabled is set to a string, it would enable the option (same as setting it to true) and use the config'ed string...

How about this (in Panel.js)?


// private
onDisable : function(){
if(this.rendered && this.maskDisabled){
if (this.maskDisabled === true)
this.el.mask();
else
this.el.mask(maskDisabled);
}
Ext.Panel.superclass.onDisable.call(this);
}