I have started using the md-table for my project, and I want fixed column width. Currently all columns width are divided into equal size.
Where can I get the documen
When Material creates the table it automagically applies two class-names for you which you can use to style each column.
In the the example below the styles is named mat-column-userId
and cdk-column-userId
.
ID
{{row.id}}
Now you can use those names in css:
.mat-column-userId {
flex: 0 0 100px;
}
Similar to Rahul Patil's answer, but you don't need to add another class to your column definitions.