JqGrid: Remove tooltip for all rows amp; columns(JqGrid:删除所有行的工具提示 amp;列)
问题描述
我有一个包含许多列的 jqGrid 表.我不想对每一列都使用 setCell 方法来禁用工具提示.有什么方法可以一次性禁用所有列和行的工具提示,而不循环遍历每一列?
I have a jqGrid table with many columns. I dont want to use the setCell method for every column to disable tooltip. Is there any way to disable tool tips for all the columns and rows in one shot with out looping through each column?
推荐答案
如果在 colModel 中使用 title: false 没有 title 属性将为相应列上网格的单元格创建.因此,不会显示任何工具提示,也不会显示单元格的悬停.要将 title: false 设置为 colModel 的 default 设置,您可以使用 cmTemplate:
If you use title: false in the colModel no title attribute will be created for the cells of the grid on the corresponding column. So no tooltips will be shown no the hovering of cells. To set title: false as your default setting for colModel you can use cmTemplate:
cmTemplate: { title: false }
有关详细信息,请参阅旧答案.
See the old answer for more information.
这篇关于JqGrid:删除所有行的工具提示 &列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:JqGrid:删除所有行的工具提示 &列
基础教程推荐
- 如何在特定日期之前获取消息? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
