extjs 如何給column 加上提示
更新時間:2014年07月29日 11:31:24 投稿:whsnow
本節(jié)主要介紹了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

