angular - PrimeNG 芯片:removeIconClass 不起作用,并且不允许我替换默认 ICON,即 pi pi-times-circle
问题描述
我对 Prime NG 比较陌生,并且仍在尝试弄清楚一些事情。我被困在一个地方,我想使用文档中提到的属性removeIconClass更改 Prime NG 芯片的默认删除图标。但它不起作用,而是继续显示默认图标。以下是我尝试过的两种方法以及与其中一种相关的错误。如果 primeNG 团队的某个人告诉我我在这里做错了什么,那真的会很有帮助?
<p-chip *ngFor="let req of requirements" label="{{req.name}}" removeIconClass="pi pi-times" (onRemove)="onRemove(req.id)" [removable]="true"
styleClass="chip-tag ntg-bg-white-bg ntg-body3 p-m-1 p-py-1 p-px-3"></p-chip>
<p-chip *ngFor="let req of requirements" label="{{req.name}}" [removeIconClass]="pi pi-times" (onRemove)="onRemove(req.id)" [removable]="true"
styleClass="chip-tag ntg-bg-white-bg ntg-body3 p-m-1 p-py-1 p-px-3"></p-chip>
解决方案
推荐阅读
- c# - ASP.NET Core HttpClient 仅接受本地主机的所有证书,否则行为正常
- python - Selenium 无法选择 iframe 的上下文(间歇性地)
- java - 将字符串与 Map 中的值进行比较
并返回它的密钥 - ios - 包含 UITableView 的 UIView 扩展了父 UIView 的边界并且不滚动
- android - 如何实现 Intent 以实现无缝导航
- webpack-4 - webpack 4 导出未按配置公开
- macos - 为什么 swt 的 gc 不使用新的 SWT 在 Mac os mojave 中绘制任何图像?
- python - 我命令上的 encode() 函数正在向服务器发送一个以 b' 为前缀的请求
- angular - 从 Observable 中获取字符串
- uwp - Azure 将路由响应映射到 Windows.Services.Maps.MapControl