extjs 如何给column 加上提示
更新时间:2014年07月29日 11:31:24 投稿:whsnow
本节主要介绍了extjs 如何给column 加上提示,需要的朋友可以参考下
<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;
}
相关文章
ExtJS TabPanel beforeremove beforeclose使用说明
ExtJS 关闭TabPanel内的Panel时使用TabPanel的'beforeremove’和其内的Panel的'beforeclose’事件弹出关闭确认提示对话框2010-03-03
EXTJS记事本 当CompositeField遇上RowEditor
用RowEditor作批量编辑器时,遇到一个问题,想要在Roweditor中使用三个下拉列表组成级联式选择控件2011-07-07


最新评论