有个renderer配置,
1
2
3
4
5
6
|
columns: [{
text:
'状态'
,
sortable:
false
,
dataIndex:
'state'
,
//数据源中的状态列
renderer:
function
(v) {
return
'<input type="checkbox"'
+(v==
"1"
?
" checked"
:
""
)+
'/>'
; }
//根据值返回checkbox是否勾选
}
|