任何人都知道如何模拟ExtJS中任何字段的子字段?例如带子字段的Extjs模型字段
Ext.data.Model:
fields:[
{name: 'id', type: 'int'},
{name: 'title', type: 'string'},
{name: 'description', type: 'string'},
{name: 'priority', type: 'auto', fields:[
{name: 'code', type: 'string'}
]},
{name: 'createdBy', type: 'auto'},
]
然后在我的网格面板
Ext.grid.Panel
columns:[
{header:'Title', dataIndex:'title', flex:1},
{header:'Priority', dataIndex:'code'}
],
任何想法我如何访问dataIndex '代码'在'优先'下?提前致谢!
在这里,你可以回答看到我的例子到一个类似的问题:http://stackoverflow.co米/一/ 12694550/1496088 –