Extjs里有个actioncolumn,但actioncolumn只能添加一系列button,不能既有字又有button
如何能在column里增加html标签,并给button添加事件呢?
1. 首先,在column里重写renderer方法,方法里拼html语句
View里主要代码如下:
columns: [{
header: 'Complex column',
width: 90,
renderer: function(value, cellmeta, record) {
var display="Text";
display+='</br>';
display+='<input type="image" class="add" src="extjs/resources/themes/images/spinner.gif" alt="Add" />';
display+='<input type="image" class="edit" src="extjs/resources/themes/images/spinner.gif" a