I am currently utilizing the ngx-select-dropdown
plugin with a search feature, and I am looking to specify multiple values for the displayKey
property such as: firstname
and lastname
.
Here is the configuration object I am using:
dropdownconfig = {
displayKey: 'firstName, lastName',
search: true,
placeholder: 'Select User',
height: '150px'
};
html:
<ngx-select-dropdown (change)="selecteAdmin($event)" [config]="dropdownconfig" [options]="allUserData" [(ngModel)]="singleSelect" [multiple]="false"></ngx-select-dropdown>
Is there a way to specify multiple values for the displayKey
? Additionally, any suggestions on how to implement validation for this dropdown would be appreciated.