react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

header cell formatter

Open jlarso11 opened this issue 9 years ago • 2 comments

HAVE YOU ALREADY SEARCHED FOR SIMILAR ISSUES? PLEASE HELP US OUT AND DOUBLE-CHECK FIRST!

ALSO, PLEASE DON'T BE THAT PERSON WHO DELETES THIS TEMPLATE. IT'S HERE FOR A REASON.

THANKS!

WHICH VERSION OF REACT ARE YOU USING?

Officially Supported:
[ ] v0.14.x
Community Supported:
[X] v15.0.x

WHICH BROWSER ARE YOU USING?

Officially Supported:
[ ] IE 9 / IE 10 / IE 11
[ ] Edge
[X] Chrome
Should work:
[X ] Firefox
[X] Safari

I'm submitting a ... (check one with "x")

[ ] bug report
[X] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md

Current behavior

Expected/desired behavior Is there a way to custom format a header cell? I found the way to do different cells, but I also am in need of customizing the headers beyond the text.

Reproduction of the problem If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?

What is the motivation / use case for changing the behavior?

jlarso11 avatar Jan 17 '17 18:01 jlarso11

Hi @jlarso11.

You can specify an 'headerRenderer' to each one of your columns, as we do in here for row selection.

Cheers.

diogofcunha avatar Jan 18 '17 10:01 diogofcunha

@diogofcunha , not sure if I'm using it wrong, but when I pass prop, headerRenderer does not work, but when I pass it to formatter the same way, it does read and behave. Is there a probable solution for rendering header?

sjain-mi9 avatar May 31 '17 12:05 sjain-mi9