Update.js 548 B

1234567891011121314151617181920212223242526
  1. /**
  2. * 修改按钮
  3. */
  4. Ext.define('erp.view.core.button.Update',{
  5. extend: 'Ext.Button',
  6. alias: 'widget.erpUpdateButton',
  7. iconCls: 'x-button-icon-submit',
  8. cls: 'x-btn-gray',
  9. text: $I18N.common.button.erpUpdateButton,
  10. id:'updatebutton',
  11. style: {
  12. marginLeft: '10px'
  13. },
  14. width: 60,
  15. initComponent : function(){
  16. this.callParent(arguments);
  17. },
  18. listeners: {
  19. afterrender: function(btn) {
  20. var form = btn.ownerCt.ownerCt;
  21. if(form && form.readOnly) {
  22. btn.hide();
  23. }
  24. }
  25. }
  26. });