简体   繁体   English

如何在使用 ag-grid 反应时编辑行名

[英]How to edit row name while using ag-grid react

i am using AG-Grid in react, I want to rename the row title count which appear automatically while using aggregation.我在反应中使用 AG-Grid,我想重命名使用聚合时自动出现的行标题计数。 the photo will help you to understand better.照片将帮助您更好地理解。 在此处输入图像描述

look at the row which says "United States" and then (1109) which is count of matching pairs i want to remove that count from there.查看显示“美国”的行,然后是 (1109),这是匹配对的计数,我想从那里删除该计数。 can anyone help me in this.任何人都可以帮助我吗?

To remove the count from the group, add the following to the autoGroupColumnDef :要从组中删除计数,请将以下内容添加到autoGroupColumnDef

  const autoGroupColumnDef = {
      cellRendererParams: {
        suppressCount: true,
      },
    };

See this implemented in the documentation example here此处的文档示例中查看此实现

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM