Recycle.js 705 B

123456789101112131415161718192021222324252627282930
  1. Ext.define('erp.view.common.Recycle',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'panel',
  10. height: '100%',
  11. id: 'recycle_panel',
  12. layout: 'anchor',
  13. bbar: ['->',{
  14. text: $I18N.common.button.erpExportButton,
  15. iconCls: 'x-button-icon-excel',
  16. cls: 'x-btn-gray',
  17. id: 'export'
  18. },{
  19. text: $I18N.common.button.erpCloseButton,
  20. iconCls: 'x-button-icon-close',
  21. cls: 'x-btn-gray',
  22. handler: function(btn){
  23. parent.Ext.getCmp("content-panel").getActiveTab().close();
  24. }
  25. },'->']
  26. }]
  27. });
  28. me.callParent(arguments);
  29. }
  30. });