使用通过imageUrl等而指定的图像,在数据单元格中,显示各个状态的图像按钮。
当设置列渲染器时,将type指定为"button"。
grid.setColumns([{
name: "col1',
renderer: {
type: "button",
imageUrl: "img/btn_normal.png",
text: "Refresh"
}
},
...
];