EXTJS的Grid 怎样在第一列添加加button????

2024-12-09 04:15:15
推荐回答(4个)
回答(1):

var grid = new Ext.grid.GridPanel({ cm : new Ext.grid.ColumnModel([{header : '按钮,xtype : 'actioncolumn',width : 90,align : 'center',items : [{text: '按钮'}]}])});

回答(2):

tbar:Ext.create("Ext.Toolbar",{
items:[{
xtype:'button',
text:'按钮'
}]
})

回答(3):

tbar:[{text:'按钮'}]

回答(4):

这是2.x版本的代码吧,如果第一列是复选框是怎么配上去的?