कोई भी जानता है कि आप ExtJS में किसी भी क्षेत्र के उप-क्षेत्र कैसे मॉडल करते हैं? उदाहरण के लिएSubfields के साथ Extzs मॉडल फ़ील्ड्स
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/14 9 6088 –