I wanna align the columns headers ‘RFD’ and ‘Mechanically Fit’ to the center but i am unable to do so .
Please help me with this
columnDefs = [
{"field": "Hub Name", 'rowSpan': {'function': "Hub Name"}, "sortable": False, "cellStyle": {'textAlign': 'center'}},
{"field": "Fleet Name", "sortable": False, "cellStyle": {'textAlign': 'center'}},
{
'headerName': 'RFD',
'children': [
{'field': "RFD 0-1", 'headerName': '0 to 1 Months'},
{'field': "RFD 1-3", 'headerName': '1 to 3 Months'},
{'field': "RFD > 3", 'headerName': 'Greater Than 3 Months'}
],
},
{
'headerName': 'Mechanically Fit',
'children': [
{'field': "M_fit 0-1", 'headerName': '0 to 1 Months'},
{'field': "M_fit 1-3", 'headerName': '1 to 3 Months'},
{'field': "M_fit > 3", 'headerName': 'Greater Than 3 Months'}
]
}
]
I made multiple headers but the above 2 main headers are not aligning.