• extjs store快速创建的几种方式


    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

  • 相关阅读:
    杭电 1013 Digital Roots
    杭电 1040 As Easy As A+B 【排序】
    杭电 2092 整数解
    bzoj3223
    bzoj3224
    LA3905
    bzoj3601
    bzoj1002
    bzoj3105
    bzoj3332
  • 原文地址:https://www.cnblogs.com/coolzdp/p/7726177.html
Copyright © 2020-2023  润新知