]>
git.proxmox.com Git - extjs.git/blob - extjs/modern/modern/src/Mask.js
2 * A simple class used to mask any {@link Ext.Container}.
4 * This should rarely be used directly, instead look at the {@link Ext.Container#masked} configuration.
9 * // Create our container
10 * var container = Ext.create('Ext.Container', {
11 * html: 'My container!'
14 * // Add the container to the Viewport
15 * Ext.Viewport.add(container);
17 * // Mask the container
18 * container.setMasked(true);
20 Ext
.define('Ext.Mask', {
21 extend
: 'Ext.Component',
23 requires
: ['Ext.util.InputBlocker'],
30 baseCls
: Ext
.baseCSSPrefix
+ 'mask',
33 * @cfg {Boolean} transparent True to make this mask transparent.
64 * A tap event fired when a user taps on this mask
65 * @param {Ext.Mask} this The mask instance
66 * @param {Ext.EventObject} e The event object
68 initialize: function() {
72 me
.element
.on('tap', 'onTap', me
);
73 me
.on('hide', 'onHide', me
);
77 Ext
.util
.InputBlocker
.unblockInputs();
79 // Oh how I loves the Android
80 if (Ext
.browser
.is
.AndroidStock4
&& Ext
.os
.version
.getMinor() === 0) {
81 var firstChild
= this.element
.getFirstChild();
89 this.fireEvent('tap', this, e
);
92 updateTransparent: function(transparent
) {
93 this.toggleCls(this.getBaseCls() + '-transparent', transparent
);