我有一個網(wǎng)格,當(dāng)我展開行時,在該網(wǎng)格中,還有另一組數(shù)據(jù)要顯示。我希望那些網(wǎng)格列是動態(tài)的。根據(jù)我的 json 數(shù)據(jù),我想將數(shù)據(jù)推送到列中。但是在這里當(dāng)我給出方法時,調(diào)試器不會去那里。任何人都可以解釋如何在 extJS 小部件列中加載動態(tài)列。這是我的代碼Ext.define('myApp.view.base.grid.Window', { extend: 'Ext.window.Window', alias: 'widget.win', title: 'my window', height: 500, width: 800, layout: 'fit', items: [{ xtype: 'grid', columns: [{ text: 'Col 1', dataIndex: 'col1', flex: 1, },{ text: 'col2', dataIndex: 'col2', flex: 1 }], }], plugins: [{ ptype: 'rowwidget', widget: { xtype: 'grid', columns:[]//this.createColumn() // This columns i want to load dynamically. } }]});
如何在 extJS 網(wǎng)格上動態(tài)加載小部件網(wǎng)格列
哆啦的時光機
2021-10-14 12:43:59