ng-multiselect-dropdown
ng-multiselect-dropdown copied to clipboard
show selected value with idField only without textField?
Angular version: Angular 9
ng-multiselect-dropdown version: 0.3.7
Description of issue: not able to show selected value with idField?
this.mymodel = [{ item_id: 1 }];
this.dropdownList = [
{ item_id: 1, item_text: 'Chennai' },
{ item_id: 2, item_text: 'Bangaluru' },
{ item_id: 3, item_text: 'Delhi' },
{ item_id: 4, item_text: 'Kolkata' },
{ item_id: 5, item_text: 'Mumbai' },
];
this.dropdownSettings = {
singleSelection: false,
idField: 'item_id',
textField: 'item_text',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
itemsShowLimit: 3,
allowSearchFilter: true,
};
}
show data with **idField** only without **textField**?
Here is the sample: Demo: Please share sample code link using StackBlitz or codesandbox
is there anywork around for this ?