flexigrid 添加checkbox
先来一张图,看看添加了checkbox的界面是怎么样的?
flexigrid本质上用的是html的table元素,添加checkbox实际上就是每个tr里面添加一个td, td里面有一个div, div里面包含了input type=checkbox 这样的标记。
在JavaScript添加很简单:
首先我定义了一个config函数,创建了三个列:
allPowers : {"powers":[{"index":"0","value": {"name": "message","zhName": "发送信息","zhDes": "发送信息到Business Signs"}},{"index":"1","value": {"name": "log","zhName": "信息日志","zhDes": "查看发送信息的日志"}},{"index":"2","value": {"name": "group","zhName": "分组管理","zhDes": "分组管理"}},{"index":"3","value": {"name": "config","zhName": "装置配置","zhDes": "装置配置"}},{"index":"4","value": {"name": "account","zhName": "账户管理","zhDes": "创建新账户并分配权限"}},{"index":"5","value": {"name": "title","zhName": "标题信息","zhDes": "标题信息"}}]},