md-table - How to update the column width

后端 未结 18 2122
离开以前
离开以前 2020-12-04 10:58

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

18条回答
  •  自闭症患者
    2020-12-04 11:21

    I'm using FlexLayout to update the column width according query media that FlexLayout gives us.

    fxFlex="30" fxFlex.gt-xs="15" fxFlex.gt-sm="20" fxFlex.gt-md="25"
    

    means that this column will use the 30% of the row width by default, when gt-xs @mediaQuery is met, the new width will be 15% and similar behavior for other conditions

    
      
        {{ balanceTable.datesHeaders[2] }}
        
          

    Read more about FlexLayout and @MediaQueries at https://github.com/angular/flex-layout/wiki/Responsive-API

提交回复
热议问题