This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
Unclear docs for headerDataGetter and headerRenderer usage #182
Open
Description
What is exactly the headerDataGetter
meaning? The documentation is laconic and unclear. It just says that this is "Function that is called to get the data for the header row." But what data format should be returned? And how such data is used? By headerRenderer
? HOW? It is completely unclear and implicit.
I know that:
headerRenderer
is rendered only once and it has not access to dynamic state.headerDataGetter
has access to the state but it's output is not rendered as HTML.
The problem is: to render HTML in the header I need headerRenderer
. But to have this content dynamic I need headerDataGetter
. So I need both of them but I do not know how headerDataGetter
is used by headerRenderer
(or vice-versa?) The rendered result is a magic merge from both parts. How it works? How both API function are related to each other?