如何在 agGrid 中不可见单元格工具提示?



我想在单元格悬停时隐藏工具提示,我该怎么做? 在 agGrid 选项上有什么值要设置吗?

根据我对 ag-grid 的经验,工具提示不会自动设置。在你的gridOptions或columnDef中,你应该有这样的东西:

{
headerName: 'Column With TOOLTIP',
field: 'firstColumn',
tooltipField: 'firstColumn',
filter: 'agTextColumnFilter',
filterParams: {apply: true, newRowsAction: 'keep'}
}, {
headerName: 'Column Without TOOLTIP',
field: 'secondColumn',
tooltipField: 'secondColumn',
filter: 'agTextColumnFilter',
filterParams: {apply: true, newRowsAction: 'keep'}
},

删除属性tooltipField以隐藏工具提示。

最新更新