table icon indicating copy to clipboard operation
table copied to clipboard

Adding custom components to column headers in global column defaults

Open aree5741 opened this issue 9 years ago • 2 comments

Is it possible to customize all the headers (apply a global component ) through the 'column' prop (like adding an image to all headers or up and down arrows when sorting), as it seems to get overridden by the 'header' attribute in 'columns' props set.

aree5741 avatar Feb 14 '17 14:02 aree5741

You can override the core components pretty easily. https://github.com/tannerlinsley/react-table/blob/master/README.md#component-overrides. Just make sure that the custom components you use implement the necessary interfaces that the built in ones do (on click, class name merging, styles, etc)

tannerlinsley avatar Feb 14 '17 15:02 tannerlinsley

If you still have issues, reopen

tannerlinsley avatar Feb 15 '17 14:02 tannerlinsley