extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
30 lines (22 loc) • 628 B
JavaScript
Ext.define('KitchenSink.view.pivot.PivotController', {
extend: 'Ext.app.ViewController',
alias: 'controller.pivot',
yearLabelRenderer: function(value){
return 'Year ' + value;
},
monthLabelRenderer: function(value){
return Ext.Date.monthNames[value];
},
expandAll: function(){
this.getView().expandAll();
},
collapseAll: function(){
this.getView().collapseAll();
},
onPivotBeforeUpdate: function(){
Ext.log('Event "pivotbeforeupdate" fired');
},
onPivotUpdate: function(){
Ext.log('Event "pivotupdate" fired');
}
});