Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Hugo Brianski
Added: Feb 6, 2019 12:06 PM
Views: 24
Tags: no tags
  1. Ext.define('myWindow', {
  2.     extend: 'Ext.window.Window',
  3.     alias: 'widget.myWindow',
  4.     floating: true,
  5.     modal: true,
  6.  
  7.     initComponent: function () {
  8.         var me = this;
  9.         me.callParent(arguments);
  10.         me.mon(Ext.getBody(), 'click', function(el, e){
  11.             me.close(me.closeAction);
  12.         }, me, { delegate: '.x-mask' });
  13.     }
  14. });