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
Assign a class to the cell as below:
gridOptions = { ... columnDefs: [ ... { headerName: "field1", field: "field1", cellClass: "grid-cell-centered"} ... ] }
css file:
.grid-cell-centered { text-align: center; }