Open gauravshri12 opened 6 years ago
Any update about this? I get the same behavior, Maybe, Is not this behavior contemplate?
Please update if some solution for this is there I am also facing same issue
export class AppComponent { title = 'app works!'; items = []; selected = [];
constructor() {
for (let i = 1; i < 100; i++) {
this.items.push({
id: i.toString(),
name: 'Name ' + i
});
}
this.selected = [this.items[0].id, this.items[1].id];
}
log(data) { console.log(data); } }
<ng2-dual-list-box [data]="resultData" valueField="id" #name textField="name" (onAvailableItemSelected)="log($event)" (onSelectedItemsSelected)="log($event)" formControlName = "selectedItems" [availableText]="'Available Templates'" [selectedText]="'Selected Templates'" (onItemsMoved)="log($event)">
selectedItems: any[] = [ { "name":"Delivering Status", "id":7 }, { "name":"Ship From Postal Code", "id":5 } ];