gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.7k stars 931 forks source link

How to make Rotated Table Column Headers #1197

Open FrozenIce0617 opened 4 years ago

FrozenIce0617 commented 4 years ago

Thanks to all contributors to this great library for their time. ❤️

Expected Behavior

I'd like to make rotated column headers. This is what I want to build with mui-datatables. Just column headers, no others.

image

Your Environment

Tech Version
Material-UI ^4.4.3
MUI-datatables ^2.14.0
React ^16.9.0
browser Chrome
etc
wdh2100 commented 4 years ago

https://codesandbox.io/s/muidatatables-custom-toolbar-xcik6

using setCellHeaderProps

setCellHeaderProps function   Is called for each header cell and allows you to return custom props for the header cell based on its data. function(columnMeta: object) => object Example