EasyUI Datagrid 鼠标悬停显示单元格内容
时间:2015-11-19 11:07:27
收藏:0
阅读:838
第一种方式: 1.js 定义函数 <script type="text/javascript"> //格式化单元格提示信息 function formatCellTooltip(value){ return "<span title=‘" + value + "‘>" + value + "</span>"; } </script> 2、调用函数 <th data-options="field:‘itemid‘,width:80,halign:‘center‘,formatter:formatCellTooltip">Item ID</th> 第二种方式: $(‘#dg‘).datagrid({ fitColumns: true, nowrap: true, striped: true, rownumbers: true, pagination: true, singleSelect: true, columns: [[ { field: "itemid", title: ‘Item ID‘, width:80,halign:‘center‘, formatter: function (value) { return "<span title=‘" + value + "‘>" + value + "</span>"; } }]] });
原文:http://www.cnblogs.com/xuguanghui/p/4976636.html
评论(0)