Sha256: 2c2180be99669b54de1693f5a7dce309ba709f83d525cdc6ec9f74f8949d88db
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
Ext.define('<%= app_name %>.view.<%= singular_table_name %>.EditWindow', { extend: '<%= app_name %>.ux.window.EditWindow', baseUrl: '/<%= plural_table_name %>', model: '<%= app_name %>.model.<%= singular_table_name.capitalize %>', formItemId: '<%= singular_table_name %>Form', initComponent: function() { this.items = this.buildItems(); this.callParent(arguments); }, buildItems: function() { var me = this; var url = this.recordId > 0 ? me.baseUrl+'/'+this.recordId+'.json' : me.baseUrl+'.json'; var method = this.recordId > 0 ? 'PUT' : 'POST'; return [ { xtype: '<%= singular_table_name %>form', itemId: me.formItemId, url: url, method: method, waitMsgTarget: true } ]; } });
Version data entries
3 entries across 3 versions & 1 rubygems