extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
14 lines • 589 B
JavaScript
Ext.define('KitchenSink.model.grid.Plant', {
extend: 'KitchenSink.model.Base',
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'}
]
});