Setting auto-width on a column without defining q-td #14045
-
Hello quasar community! I have a QTable with defined columns. I want to set the max-width of the first column (ID) to e. g. 200px. I experimented with the style property of the column but that gave no results. I found the auto-width property of QTd API but I want to avoid defining the html like in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You could make use of {
name: 'members',
label: 'Members',
required: true,
align: 'left',
field: (row) => row.members,
classes: 'q-table--col-auto-width',
sortable: false,
}, |
Beta Was this translation helpful? Give feedback.
-
Use Style.
|
Beta Was this translation helpful? Give feedback.
You could make use of
classes
attribute while defining columns.