viewModel中定义
stores: { tickets: { model: 'Ticket', autoLoad: true, remoteFilter: true, filters: [{ property: 'status', value: '{statusField.value}' }, { property: 'assigneeId', value: '{assigneeField.value}' }, { property: 'projectId', value: '{theProject.id}' }] }, statuses: { fields: ['id', 'name'], data: [{ id: -1, name: '-- All --' }, { id: 1, name: 'Pending' }, { id: 2, name: 'Open' }, { id: 3, name: 'Closed' }] } }
store配置项中直接定义
store: { fields: ['id', 'name'], data: [ { id: 1, name: 'Pending' }, { id: 2, name: 'Open' }, { id: 3, name: 'Closed' } ] }
通过storeManager来获取
http://docs.sencha.com/extjs/6.2.0/classic/Ext.view.View.html