Is it possible to remotely clear a multi-select (or multiple multi-selects) with a button? I'm using primeng multi-select with turbo table
I've seen this question a few times, but not with a selected answer.
Below is my multi-select:
<span *ngIf="col.field == 'Product'">
<p-multiSelect [options]="getUniques(col.field)"
(onChange)="dt.filter($event.value, col.field, 'in')">
</p-multiSelect>
</span>
Here is my button:
<p-button label="Clear All"
styleClass="ui-button-primary"
(click)="onResetAll($event, dt)">
</p-button>
Here is the method, where I try to reset values, but does not seem to reset:
onResetAll(event, dt) {
dt.filter('', 'Product', 'contains');
}