【问题标题】:How to invisible cell tooltip in agGrid?如何在agGrid中隐藏单元格工具提示?
【发布时间】:2020-05-19 19:44:50
【问题描述】:

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

【问题讨论】:

  • “隐形”是什么意思?您想在悬停时显示工具提示吗?
  • 实际上我不想在一列的单元格中显示“工具提示”。

标签: angular ag-grid ag-grid-angular


【解决方案1】:

根据我使用 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 以隐藏工具提示。

【讨论】:

    猜你喜欢
    • 2022-08-13
    • 2011-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-23
    • 2011-11-12
    • 1970-01-01
    相关资源
    最近更新 更多