1

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

4

1 回答 1

1

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

于 2019-04-09T16:13:29.897 回答