1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

ngx-select-dropdown set displayKey with multiple values

Discussão em 'Angular' iniciado por Pathik Vejani, Junho 3, 2025.

  1. I am using ngx-select-dropdown with search feature and I want to set multiple displayKey values like: firstname and lastname.

    Below is my config object:

    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>


    How to display multiple values for displayKey? Also, need validation on that drop-down.

    Continue reading...

Compartilhe esta Página