Primeng multiSelect 过滤器文本需要在 'onPanelHide' 事件中清除
Primeng multiSelect filter text need to clear on 'onPanelHide' event
Primeng multiSelect 过滤器文本需要在 'onPanelHide' 事件
上清除
文档指定使用回调 onPanelHide
https://www.primefaces.org/primeng/#/multiselect
<p-multiSelect (onPanelHide)="handlePanelHide()" [options]="cities1" [(ngModel)]="selectedCities1"></p-multiSelect>
然后在您的组件中,您将执行您的逻辑来进行过滤
public handlePanelHide(): void {
// Filter the options with your custom logic
}
Primeng multiSelect 过滤器文本需要在 'onPanelHide' 事件
上清除文档指定使用回调 onPanelHide
https://www.primefaces.org/primeng/#/multiselect
<p-multiSelect (onPanelHide)="handlePanelHide()" [options]="cities1" [(ngModel)]="selectedCities1"></p-multiSelect>
然后在您的组件中,您将执行您的逻辑来进行过滤
public handlePanelHide(): void {
// Filter the options with your custom logic
}