<ejs-multiselect id='games' #sample [dataSource]='sportsData' [allowFiltering]="true"
(filtering)="onFiltering($event)" [fields]='fields' [placeholder]='waterMark' [popupHeight]='height'>
</ejs-multiselect>
// define the JSON of data
public sportsData: { [key: string]: Object }[] = [
{ Id: "Game1", Game: "American Football" },
{ Id: "Game3", Game: "Basketball" },
{ Id: "Game4", Game: "Cricket" }
];
public tempDate: { [key: string]: Object }[] = [
{ Id: "Game6", Game: "Golf" },
{ Id: "Game7", Game: "Hockey" },
{ Id: "Game8", Game: "Rugby" },
{ Id: "Game9", Game: "Snooker" }
];
public onFiltering(args): void {
this.listObj.dataSource = this.tempDate;
}
|