Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More custom params for renderHeader when using defaultConfig #2

Open
0xdavid7 opened this issue Jan 11, 2023 · 0 comments
Open

More custom params for renderHeader when using defaultConfig #2

0xdavid7 opened this issue Jan 11, 2023 · 0 comments

Comments

@0xdavid7
Copy link

0xdavid7 commented Jan 11, 2023

  • Current renderHeader:
renderHeader?: (tableState?: ITableState<T>, accessor?: Partial<keyof T>) => ReactNode;
  • For using defaultConfig, it should have the 3th param called label to implement renderHeader in defaultConfig like this:
{
....
renderHeader: (_, _, label) => <span className="font-normal text-gray-600">{label}</span>,
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant