ImportExcel.js 859 B

1234567891011121314151617181920212223242526272829303132
  1. Ext.define('erp.view.core.button.ImportExcel',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.erpImportExcelButton',
  4. iconCls: 'x-button-icon-excel',
  5. text: $I18N.common.button.erpImportExcelButton,
  6. style: {
  7. marginLeft: '10px'
  8. },
  9. id:'fileform',
  10. layout:'column',
  11. width: 100,
  12. initComponent : function(){
  13. this.callParent(arguments);
  14. },
  15. bodyStyle: 'background: transparent no-repeat 0 0; border:0;background-color:#f0f0f0',
  16. items: [{
  17. xtype: 'filefield',
  18. name: 'file',
  19. buttonOnly: true,
  20. hideLabel: true,
  21. /* disabled:true,*/
  22. width: 90,
  23. height: 17,
  24. id:'excelfile',
  25. buttonConfig: {
  26. iconCls: 'x-button-icon-excel',
  27. text: $I18N.common.button.erpImportExcelButton,
  28. cls: 'x-btn-gray',
  29. id:'filebutton',
  30. },
  31. }]
  32. });