You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to react and tanstack/table, so I might be missing something.
I want to display table generating via pandas directly in a react web app.
Using specific settings one can get the schema for the generated files separately (file1 and file2).
Examples use type Person which contains the same information as columnName: columnType.
I am wondering if I can use the data['schema']['fields'] information generate columnHelper and the corresponding data['data'] to fill the values in the table (where data is the content in file1 or file2).
As The type of each column is also provided by type attribute of each field in the json file.
In short, I want to dynamically/programmatically create the columns in the code so that if I change the table generated from pandas, the web app automatically adapts it and shows the table without change in react app.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am new to react and tanstack/table, so I might be missing something.
I want to display table generating via pandas directly in a react web app.
Using specific settings one can get the schema for the generated files separately (file1 and file2).
Examples use type Person which contains the same information as
columnName: columnType
.I am wondering if I can use the
data['schema']['fields']
information generatecolumnHelper
and the correspondingdata['data']
to fill the values in the table (where data is the content infile1
orfile2
).As The type of each column is also provided by
type
attribute of eachfield
in the json file.In short, I want to dynamically/programmatically create the columns in the code so that if I change the table generated from pandas, the web app automatically adapts it and shows the table without change in react app.
Beta Was this translation helpful? Give feedback.
All reactions