extjs - How to override plugins? -


Actually, I want to override the 'Ext.ux.TabCloseMenu' plugin. I am planning to add more localization to this component, because it has not been done by default, I try to override it like this:

  Ext.define ( 'CustomTabCloseMenu', {extension: 'Ext.ux.TabCloseMenu', nickname: 'plugin.customtabclosemenu', ...});  

And in this way I add this plugin to a tablet:

  ... plugins: [Ext.create ('CustomTabCloseMenu', {} )] ...  

but it is not working.

have you tried

  plugins: 'customtabclosemenu'  

or

  plugins: {xclass: 'CustomTabCloseMenu'}  

?


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -