extjs 如何给column 加上提示

前端技术 2023/09/02 JavaScript
<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;
}

本文地址:https://www.stayed.cn/item/5416

转载请注明出处。

本站部分内容来源于网络,如侵犯到您的权益,请 联系我

我的博客

人生若只如初见,何事秋风悲画扇。