How to customize autoGroupColumnDef's headerGroup cell?

流过昼夜 提交于 2020-01-06 18:08:19

问题


I have a AG-grid set up with autoGroup and other column groups. I am able to set the group names on the other columns but not the first column, which is the auto group. How do I access the first cell? In the plunker example, the cell above 'test'.

https://plnkr.co/edit/LgOOxMJpGwDcMdIq4Y5j?p=preview

<AgGridReact
            // autoGroupColumnDef={this.state.columnDefs}
            columnDefs={this.state.columnDefs}
            frameworkComponents={this.state.frameworkComponents}
            rowData={this.state.rowData}
            defaultColDef={this.state.defaultColDef}
            onGridReady={this.onGridReady}
            rowGroup
            autoGroupColumnDef={{
              headerName: 'test',
              width: 100,
            }}
          />

| cant customize | group1 name |

| custom header | column1 | column2 |

autoGroupColumnDef doesn't seem to work the same as the regular columnDef

来源:https://stackoverflow.com/questions/56385704/how-to-customize-autogroupcolumndefs-headergroup-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!