Поля модели 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 в разделе «Приоритет»? заранее спасибо!

5
задан sha 8 May 2012 в 14:54
поделиться