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

not able to create custom header cell template #469

Open
kaushal795 opened this issue Dec 19, 2024 · 2 comments
Open

not able to create custom header cell template #469

kaushal795 opened this issue Dec 19, 2024 · 2 comments

Comments

@kaushal795
Copy link

kaushal795 commented Dec 19, 2024

Describe the bug
Can't find the documentation or example for creating custom header cell.

Current behavior
Right now the documentation doesn't clearly mentions how one can create a custom header cell template.

Expected behavior
Some example header templates explaining how one can create it and customize for eg adding icons for sorting columns and how to trigger particular onClick events would be helpful.

Screenshots or gifs
If applicable, add screenshots to help explain your problem.

Your environment details
using @silevis/reactgrid v5.0.0-alpha.5
I'm trying to create custom header cell template in this sandbox.

sandbox link

@webloopbox
Copy link
Contributor

Hi @kaushal795, v5 offers significant flexibility in creating header cells. In simple cases, the NonEditableCell will be most suitable. If you want to include a clickable sorting icon, you should create a custom cell to meet your specific requirements.
As you suggested, including an example in the documentation on creating custom header cells seems like a sensible idea, worth including in the future.

@kaushal795
Copy link
Author

Thanks, I was able to get it done using the custom cell, sharing the sadbox link in case someone's looking to implement the same.

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

2 participants