Reusable Action in Ext JS MVC
问题 I have a Grid Panel with a toolbar and an context menu. The toolbar has a edit button and the context menu has a edit menu item. Both shares the same properties (text, icon and handler) Ext has something called Action which makes it possible to share functionality etc. between components, but til now I have had no success getting it to work in the MVC architecture (I am using the new MVC architecture in 4.0) My Action class looks like this: Ext.define( 'App.action.EditAction', { extend: 'Ext