Kuechlin / mantine-data-grid

mantine data grid
MIT License
175 stars 29 forks source link

Adjustable default width #2

Closed PointSingularity closed 2 years ago

PointSingularity commented 2 years ago

Thanks for the great library!

I was wondering if there is an option to adjust the initial widths of the elements?

Thanks in advance!

Kuechlin commented 2 years ago

Hey, you can set the size of a column in the column options with:

https://tanstack.com/table/v8/docs/api/features/column-sizing#enableresizing

PointSingularity commented 2 years ago

Hey, you can set the size of a column in the column options with:

* minSize

* size

* maxSize

https://tanstack.com/table/v8/docs/api/features/column-sizing#enableresizing

This solves my problem, thank you!