Reputation: 135
How to set the size of the final table created using react-data-grid.
For example if I want a 250*250 px size table, how to do that.
Is there any props already available for that? or it needs to be done using the pure CSS.
Upvotes: 0
Views: 297
Reputation: 448
You can use something like this
this.dynamicHeight = 250px;
this.dyanmicWidth = 250px
<ReactDataGrid
minHeight={dynamicHeight}
minWidth={dynamicWidth}
...
/>
I hope this helps.
Upvotes: 1