PDA

View Full Version : What types do the fields of models support



rstuart
21 Jan 2011, 1:19 AM
I don't know if I am going crazy, but I can't find for the life of me where in the API documentation it is listed the accepted values for the type of a field. Are they listed somewhere?

AndreaCammarata
21 Jan 2011, 2:36 AM
Hi rstuart.
The possibile DataTypes are the following


auto (Default, implies no conversion)
string
int
float
boolean
date


You can find them under the type param inside the Config Option section of this Sencha Touch doc page

http://dev.sencha.com/deploy/touch/docs/?class=Ext.data.Field

Or you can read more on Ext documentation at the following Ext doc page

http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Types

Hope this helps.