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

Muk*_*thi 5 css angular primeng-datatable

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

<p-dataTable [value]="alerts" [expandableRows]="true" [expandedRows]="expandedItems" #dt>
 <p-column expander="true"></p-column>
</p-dataTable>
Run Code Online (Sandbox Code Playgroud)

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

Ant*_*ppe 0

你可以像这样覆盖你的组件CSS:

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

::ng-deep .fa-chevron-circle-down::before {
  content: "\f056";
}
Run Code Online (Sandbox Code Playgroud)

参见StackBlitz