Export.js 523 B

1234567891011121314151617181920212223
  1. /**
  2. * 导出按钮
  3. */
  4. Ext.define('erp.view.core.button.Export', {
  5. extend : 'Ext.Button',
  6. require : ['erp.util.BaseUtil'],
  7. alias : 'widget.erpExportButton',
  8. iconCls : 'x-button-icon-excel',
  9. cls : 'x-btn-gray',
  10. text : $I18N.common.button.erpExportButton,
  11. style : {
  12. marginLeft : '10px'
  13. },
  14. width : 60,
  15. initComponent : function() {
  16. this.callParent(arguments);
  17. },
  18. handler : function() {
  19. var grid = Ext.getCmp('grid'),
  20. util = grid.BaseUtil || Ext.create('erp.util.BaseUtil');
  21. util.exportGrid(grid);
  22. }
  23. });