<ejs-multiselect id='multiselect-checkbox' #muliselect [dataSource]='vegetables' [fields]='checkFields'
[showClearButton]="true" [mode]='mode' [showSelectAll]='false' [enableGroupCheckBox]='enableGroupCheckBox'>
<ng-template #footerTemplate="" let-data="">
<button ejs-button cssClass="btn-flat" (click)="unClear($event)">clear</button>
</ng-template>
</ejs-multiselect>
public unClear(args){
this.mulObj.selectAll(false);
} |
<ejs-multiselect id='multiselect-checkbox' #muliselect [dataSource]='vegetables' [fields]='checkFields'
[showClearButton]="true" [mode]='mode' [showSelectAll]='false' [enableGroupCheckBox]='enableGroupCheckBox'>
<ng-template #footerTemplate="" let-data="">
<button ejs-button class="e-selectall-parent" cssClass="btn-flat" (click)="unClear($event)">clear</button>
</ng-template>
</ejs-multiselect>
// To unselect all item needs to pass the boolean value as false in selectAllItems
public unClear(e){
(this.mulObj as any).selectAllItems(false,e);
} |