Search code examples
reactjsantd

How can we configure the Header of ant design table component?


We have requirement where we need to show 'Hide/Show' columns feature on the header of table and also we want to provide different color to the header of table in ant design. Can anyone help me how can we do this? I did not find any control to do it as header rendering is completely internal to component.


Solution

  • You can use the <Table.Column title={<...any react node...>}> attribute in combination with ordinary CSS.