PHP Classes

File: src/examples/exampleBundle/Resources/Grid/js/app/model/GenericModel.js

Recommend this page to a friend!
  Classes of william amed   Raptor 2   src/examples/exampleBundle/Resources/Grid/js/app/model/GenericModel.js   Download  
File: src/examples/exampleBundle/Resources/Grid/js/app/model/GenericModel.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 618 bytes
 

Contents

Class file image Download
Ext.define('Grid.model.GenericModel', { extend: 'Ext.data.Model', fields: ['id','nombre','apellidos','edad','sexo'], proxy: { type: 'rest', listeners:{ exception:function(s,response){ var resp=Ext.decode(response.responseText); Dino.msg.info(resp.cod,resp.msg); } }, api:{ create : 'example/insert', read : 'example/list', update : 'example/edit', destroy : 'example/delete' }, reader: { type: 'json' } } });