PDA

View Full Version : Ext.data.Model type "int" or "integer" ?



maneljn
8 Feb 2013, 10:18 AM
In Ext.data.Model definition for an integer value i have to set type to "int" or "integer" ?



fields: [
{ name: 'id_Calendario', type: 'int' },
.....




fields: [
{ name: 'id_Calendario', type: 'integer' },
.....

Farish
8 Feb 2013, 10:54 AM
Both would work the same way. According to API Documentation, INT and INTEGER are synonymous:

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Types-property-INT