react-table add column on button click #3985
Unanswered
HarshilPatel007
asked this question in
Q&A
Replies: 1 comment
-
If your columns are defined as component state, you can pass the columns as props to your table (directly to your table without a useMemo.) Every time the columns are updated, your table should rerender. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello all,
I've created a table and added a button "Add Row". when user clicks on this button it'll add a new editable row to table. (this is done)
So, my question is, how can I make something like this but for columns?
like, "Add Column". when user clicks on it, it'll create a new column and adds empty fields to all available rows.
example,
Beta Was this translation helpful? Give feedback.
All reactions