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:删除所有行的工具提示 &列
基础教程推荐
- Bokeh Div文本对齐 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
