1.grid onCellRender 事件中重现渲染当前的dom节点,参考http://doc.wex5.com/comps-datatables-grid/#5.3
2.使用commonExtendTypes 组件,然后在data上右键,设置扩展数据类型,目前只支持两种boolean和emaile, 后面会再扩展的
源码在这里:/UI2/system/components/justep/extendType/commonExtendTypes.reg.js
可以看到配置为sys.boolean的类型。默认会使用checkBox
{ "name" : "sys.boolean", "dataType" : "", "editor" : "$UI/system/components/justep/button/checkbox" },
如图设置,给相应的字段设置为boolean类型,就可以grid当前字段对应列上放置checkBox组件了![/fusion_text]
评一波