标签:stat 定义 div eid mod property 创建 ssi blog
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
标签:stat 定义 div eid mod property 创建 ssi blog
原文地址:http://www.cnblogs.com/coolzdp/p/7726177.html