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
If you have too many table column and it is not adjusted in angular table using md-table, then paste the following style in component.css file. It will work like a charm with scroll view horizontally.
.mat-table__wrapper .mat-table { min-width: auto !important; width: 100% !important; } .mat-header-row { width: 100%; } .mat-row { width: 100%; }
Add this style to alter your column separately.
.mat-column-{colum-name} { flex: 0 0 25% !important; min-width: 104px !important; }
Alternatively check this link, (where the code above came from), for more detail.