-
Notifications
You must be signed in to change notification settings - Fork 267
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
Adding support for custom header cells #110
Comments
I'll add a draw callback, will need to sit down and work out the details |
Support has shipped in 3.1.3-alpha6. Please give it a try. There is an example committed to storybook for how to use it. You can return true to prevent the default drawing from happening, or you can just draw a background and return false to let the default foreground draw. |
There will probably be some additional args added to handle dropdown menus but I wanted to give you a chance to test. |
Impressive how quickly you are able to build in features! |
You would need to look in the 3.1.3 branch. The production storybook wont update until I merge 3.1.3 to the main branch. |
Would it be possible to add support for custom rendering of the header cells as well?
Ideally I'd like to be able to have the capability to do something like this within the header cells:
https://codesandbox.io/s/9m9qs
I imagine the easiest way to implement this would be an additional prop such as the following:
drawHeaderCell?: (args) => boolean;
Otherwise, this library is perfect for my needs. Fantastic job.
The text was updated successfully, but these errors were encountered: