How can I center the text in the headers for an AG-grid control?

前端 未结 9 1176
长情又很酷
长情又很酷 2021-02-19 00:22

How can I center the text in the headers for an AG-grid control? I have tried using cellstyle and cellclass in the column definition but that did not work. Thank you

9条回答
  •  日久生厌
    2021-02-19 01:08

    For (independent) customization of each header, you can make a custom header component: https://www.ag-grid.com/javascript-grid-header-rendering/

提交回复
热议问题