组中的自定义ag-grid单元

问题描述 投票:0回答:1

我希望将我在ag-grid中分组的单元格对齐。现在这就是我得到的:enter image description here

这是列的定义或至少一部分的定义:

 this.columnDefs = [
  { field: 'lot', rowGroup: true, hide: true, },
  {
    headerName: 'Titre', field: 'name', sortable: true, width: 150,
  },

我尝试了cellStyle和cellClass,但没有任何变化。我该如何解决?

angular ag-grid
1个回答
0
投票

我找到了解决方案

::ng-deep .ag-theme-balham .ag-row-group .ag-cell{
justify-content: flex-start !important;
}

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.