Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a list of field types for a Sencha Touch model?

Is there a list of available field types for a Sencha Touch model?
I've searched the docu but couldn't find something like this.

You can use "inte", "string", "boolean", "timestamp" but what else? Is there a "time", a "date" oder a "datetime" and how do they behave?

like image 511
hering Avatar asked Jul 28 '11 11:07

hering


3 Answers

It's taken a good part of the afternoon, but I believe I've found the definitive list.

Model members in Ext created using the Field class.

If you click on the type config option, you'll be presented with the definitive list from source.

like image 79
kim3er Avatar answered Nov 12 '22 19:11

kim3er


Type Ext.data.Types into the web console. This is what I got for Sencha Touch 2.1:

  • AUTO: Object
  • BOOL: Object
  • BOOLEAN: Object
  • DATE: Object
  • FLOAT: Object
  • INT: Object
  • INTEGER: Object
  • NUMBER: Object
  • STRING: Object
like image 21
nsg Avatar answered Nov 12 '22 18:11

nsg


For model data field types, see the documentation for Ext.data.Types. Lists auto, string, int, float, bool, date.

like image 38
Steve B. Avatar answered Nov 12 '22 17:11

Steve B.