1
2
3
4
5
6
7
8
9
10
11
12
13
14
| Ext.define('KitchenSink.model.grid.Plant', {
| extend: 'Ext.data.Model',
| fields: [
| // the 'name' below matches the tag name to read, except 'availDate'
| // which is mapped to the tag 'availability'
| {name: 'common', type: 'string'},
| {name: 'botanical', type: 'string'},
| {name: 'light'},
| {name: 'price', type: 'float'},
| // dates can be automatically converted by specifying dateFormat
| {name: 'availDate', mapping: 'availability', type: 'date', dateFormat: 'm/d/Y'},
| {name: 'indoor', type: 'bool'}
| ]
| });
|
|