Material-table: Is it possible to set a minimum width for a column?

Created on 23 Sep 2020  路  3Comments  路  Source: mbrn/material-table

We have tables in which not all columns are equally important and would like to make one column significantly wider than the others. Is that possible?

question

Most helpful comment

@KerimG did you tried to pass widthoption to your column definition? can be a number (pixel) or string.
Seems to be undocumented, but that option exists and I saw somewhere reference to it.

All 3 comments

@KerimG did you tried to pass widthoption to your column definition? can be a number (pixel) or string.
Seems to be undocumented, but that option exists and I saw somewhere reference to it.

Thank you, @kumarunster. Yes that's how we solved it. Didn't think it'd work, since it's not documented but cool!

Thank you @kumarunster ! This should be documented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VipinJoshi picture VipinJoshi  路  3Comments

jlgreene2 picture jlgreene2  路  3Comments

diegosps picture diegosps  路  3Comments

timrchavez picture timrchavez  路  3Comments

terapepo picture terapepo  路  3Comments