Sha256: a6d6994a2a38c30b06dc6b5467e800347afcca2a27ae740a713ee45582fab5c1
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
/** * <%= class_name %> controller */ Ext.define('<%= @bundle %>.controller.<%= singular_name %>.<%= class_name %>', { extend: 'Base.abstract.entity.ReportMainController', requires : ['<%= @bundle %>.view.<%= singular_name %>.<%= class_name %>'], models : [], stores: [], views : ['<%= @bundle %>.view.<%= singular_name %>.<%= class_name %>'], refs: [ { ref : '<%= class_name %>', selector : '<%= @bundle.downcase %>_<%= singular_name %>' } ], init: function() { this.callParent(arguments); this.control({ '<%= @bundle.downcase %>_<%= singular_name %>' : { paramschange : this.onParamsChange }, '<%= @bundle.downcase %>_<%= singular_name %>_search' : { click_search : this.onSearchClick, click_reset : this.onResetClick } }); }, /**************************************************************** ** 여기는 customizing area ** ****************************************************************/ onParamsChange : function(view, params) { var grid = this.getGridView(); var store = grid.getStore(); store.getProxy().extraParams = params; grid.getStore().load(); }, /**************************************************************** ** 여기서 부터는 abstract method, 필수 구현 ** ****************************************************************/ /** * main view를 리턴 */ getMainView : function() { return this.get<%= class_name %>(); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hatio-core-0.0.6 | lib/generators/hatio/resource_view/templates/report/Controller.js |