2017-04-18 95 views
1

我只是想加粗我的表中的列標題,它比我想要的要長得多。我試圖覆蓋ui-datatable頭和其他屬性沒有運氣。現在我正在嘗試使用模板來完成它。primeng DataTable標題

<p-column field="noticeType" [sortable]="true" [filter]="true" [style]=" 
    {'overflow':'visible', 'font-weight':'bold'}" filterPlaceholder="Search"> 
     <ng-template pTemplate="header"> 
       <th [style]="{'font-weight': '600'}">Notice Type</th> 
     </ng-template> 

「通知類型」標籤顯示沒有問題,但沒有更改樣式。我也嘗試使用組件的CSS文件來設計「th」而沒有運氣。有人有主意嗎?

回答

0

您是否嘗試覆蓋類ui-column-title.ui-datatable .ui-datatable-thead>tr>th覆蓋font-weight:900可以替代我。