【问题标题】:How to change PrimeNG datatable expander icon如何更改 PrimeNG 数据表扩展器图标
【发布时间】:2018-01-27 07:02:42
【问题描述】:

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

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

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

【问题讨论】:

标签: css angular primeng-datatable


【解决方案1】:

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

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

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

见StackBlitz

【讨论】:

    猜你喜欢
    • 2017-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多