angular material 2 table header center alignment

Source: https://stackoverflow.com/questions/46154838/angular-material-2-table-header-center-alignment

Update for Angular Material 5.x.x, no need for ng-deep:
  mat-header-cell {
   display:flex;
   justify-content:flex-end;
  }

md-header-cell get 'translated' to a container with class="mat-sort-header-container". Using that, you set its style with ng-deep. Use flexbox to center its content. Put the following in the components stylesheet:
::ng-deep .mat-sort-header-container {
  display:flex;
  justify-content:center;
}

Không có nhận xét nào:

‘Connection lost’ / ‘Invalid origin!’ Error with n8n >= 1.87.0 behind Cloudflare Tunnel

 https://community.n8n.io/t/solved-connection-lost-invalid-origin-error-with-n8n-1-87-0-behind-cloudflare-tunnel/99913/1 The Solution:  The ...