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

Feature request : apply colDef to multiple (not all) columns at once #369

Open
lbertela opened this issue Apr 10, 2024 · 1 comment
Open
Labels
doc Documentation issue or suggestion

Comments

@lbertela
Copy link

Hi, I'm trying to customize multiple columns at once (those columns should have the same customization) using colDef. Unfortunately, it seems that I can only custom one column at a time by specifying the column name. defaultColDef is no use for me as I would like to modify only some columns and not all columns.

Does it exist a way to apply colDef to multiple columns at once ?

If not, would this be a possible feature ? Or does anyone have a solution to this issue ?

Thanks in advance for the help.

@glin
Copy link
Owner

glin commented Apr 16, 2024

Columns are a list of reactable::colDef() objects, so it's possible to programmatically generate and reuse column definitions. I wrote up a short guide on reusing column definitions once, so this may help: #197 (comment)

@glin glin added the doc Documentation issue or suggestion label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Documentation issue or suggestion
Projects
None yet
Development

No branches or pull requests

2 participants