primeng DataTable标头

时间:2017-04-18 15:30:38

标签: angular primeng

我只是想在表格中加粗列标题,这比我想要的要长得多。我试图在没有运气的情况下覆盖ui-datatable-header和其他属性。现在我正在尝试使用模板来完成它。

 <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>

&#34;通知类型&#34;标签显示没有问题,但没有更改样式。我也尝试过使用组件的css文件来设置&#34; th&#34;没有运气。有人有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您是否尝试覆盖课程ui-column-title.ui-datatable .ui-datatable-thead>tr>th覆盖font-weight:900为我工作。

相关问题