首页 > 编程 > JavaScript > 正文

extjs 如何给column 加上提示

2019-11-20 14:19:01
字体:
来源:转载
供稿:网友
<script type="text/javascript"src="${pageContext.request.contextPath }/extjs/examples/simple-widgets/qtips.js"></script>renderer : function(value, metaData, record, rowIndex,colIndex, store) {// provide the logic depending on business rules// name of your own choosing to manipulate the cell// depending upon// the data in the underlying Record object.// metaData.css : String : A CSS class name to add// to the TD element of the cell.// metaData.attr : String : An html attribute// definition string to apply to// the data container element within the table// cell (e.g. 'style="color:red;"').metaData.attr = 'ext:qtip="' + value + '"';return value;}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表