Primeng multiSelect过滤器文本需要在“ onPanelHide”事件上清除

时间:2019-04-09 14:35:20

标签: primeng primeng-dropdowns

Primeng multiSelect过滤器文本需要在“ onPanelHide”事件上清除

1 个答案:

答案 0 :(得分:0)

文档指定使用回调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 }