如何更改PrimeNG数据表扩展器图标

时间:2017-08-18 14:36:04

标签: css angular primeng-datatable

我正在使用PrimeNG数据表。以下是我的代码:

<p-dataTable [value]="alerts" [expandableRows]="true" [expandedRows]="expandedItems" #dt>
 <p-column expander="true"></p-column>
</p-dataTable>

如何更改行扩展器的默认图标?

1 个答案:

答案 0 :(得分:0)

您可以像这样覆盖组件CSS:

::ng-deep .fa-chevron-circle-right::before {
  content: "\f055";
  color: green;
}

::ng-deep .fa-chevron-circle-down::before {
  content: "\f056";
}

请参阅StackBlitz