angular-ngselect Questions

6

Solved

In my Angular application, I have an instance of the ng-select widget: If you click on it, by default you can search for items and add more of them to the current selection: I would like to c...
Biotechnology asked 13/9, 2018 at 14:53

4

Solved

I am using the ng-select library https://github.com/ng-select/ for Angular 5 at version 1.4.2. I want to customize it so the height of the ng-select is smaller. How can this be achieved? I have had...
Fuddle asked 7/6, 2019 at 12:8

4

I cannot find out how to use the required option in ng-select. I have tried this: <ng-select #skills required [ngClass]="{ 'is-invalid': f.submitted && skills.invalid }" [...
Handcraft asked 22/11, 2018 at 14:6

6

Solved

I want to have ng-select with two values in the property bindLabel. I have something like this: <ng-select placeholder="{{'TASKS.FOR_WHO' | translate }}" name="users" [ite...
Junitajunius asked 19/7, 2018 at 10:27

11

Solved

We are using ng-select in a project and I'm facing the problem that I can't disable the ng-select window. Is it possible to disable it with native code or do I need to find some custom solution? &...
Backlash asked 31/7, 2018 at 11:50

10

Solved

Is it possible to programmatically clear the selection of an ng-select dropdown? I'm wanting the equivalent behaviour of clicking the clear icon, but triggered programmatically. I was expecting ...
Defoliate asked 18/6, 2019 at 9:54

6

I'm using ng-select and have a custom filter header template defined which contains an input. I would like the input to receive focus when the dropdown is opened for the select, but I cant figure...
Knew asked 22/5, 2019 at 14:40

2

I'm using ng-select to select multiple values from a large list that is remotely loaded depending on what the user types in the box. Here are my requirements: Tags added dynamically Dropdown is n...
Polypetalous asked 9/11, 2018 at 17:18

5

My purpose is to use this select in my lazy load module I do: imports: [ CommonModule, FormsModule, NgSelectModule ], providers: [] The template: <ng-select [items]="list" [bi...
Quartan asked 12/11, 2020 at 12:38

4

Solved

I have several ng-selects on a page, and am trying to open one from ts. I am able to focus on the right ng-select using the following: @ViewChildren(NgSelectComponent) ngselect: QueryList<NgSe...
Rotberg asked 18/4, 2019 at 21:22

3

Solved

Please go through the link(https://ng-select.github.io/ng-select#/multiselect-checkbox) to know ng-select multi select checkbox. I am trying to use the ng-select "Group selects children" in my ang...
Amphibious asked 19/9, 2018 at 18:2

4

Ng-select is not displaying bindLabel value to the client. There is not a single Error as well. I have a couple of ng-select dropdowns. and It is showing value in one Dropdown in one div. However, ...
Audiology asked 4/4, 2019 at 13:13

3

I'm using ng-select for dropdown search but I'm unable to get validation if not selecting anything from dropdown. I return like bellow: <div class="form-group"> <ng-select [items]="prod...
Graptolite asked 26/10, 2019 at 12:12

2

Solved

From Api, I get the countryName and code as like below eg:- countryName code ----------------------- India IND United States USA Aruba ABW I want to use the ngSelect dropdown and want to d...
Circumcision asked 15/5, 2019 at 11:5

4

Solved

I am using angular6 multi-select which have a list of items coming in an array of objects from angular service on ngOnInit like this which is passing into multi-select : this.sensorTypes = [ { la...

3

Solved

I found an examle which can do "select all": https://ng-select.github.io/ng-select#/multiselect-checkbox But, I get an error: Cannot read property 'selected' of undefined. I am wondering why I got...
Marhtamari asked 25/7, 2018 at 11:47

4

I am using ng-select in my Angular application and have quite an unusual use case. I need to always display the placeholder, even on option selected. With current code the placeholder is replaced w...
Overseer asked 24/2, 2020 at 13:49

2

Solved

I'm using ng-select for angular 6. This is the HTML side of it: <ng-select [(ngModel)]="client.categoryId" class="form-control" [ngClass]="{'is-invalid':clientCategoryId.errors && c...
Hussy asked 1/8, 2018 at 20:36

2

Solved

How can I add an extra item to my ng-select dropdown like the Create New in the following image : This is the current code I have: <ng-select [multiple]="true" [hideSelected]="true" [item...
Debose asked 16/3, 2020 at 4:48

3

I'm using ng-select and on selected item fire the callback which does some logic. I face the problem, that (add) event does not fire when I choose the item from the list and I use the (change) even...
Astrosphere asked 17/7, 2018 at 7:43

2

After migrating to @ng-select v3.x (https://github.com/ng-select/ng-select), mouse click no longer works on items. My application uses bootstrap 4 and angular 8. Returning to v2.20.5 version works ...
Dukedom asked 6/9, 2019 at 12:17

2

i am using ng-select in Angular 5 for dropdown. After selecting an option the blinking cursor should be vanished or it's position should be at the end of the text. But after selecting any option fr...
Entoderm asked 24/7, 2018 at 10:46

1

Solved

I'm using ng-select to display data which my app has retrieved from an API, but although the data is successfully retrieved nothing is shown in the dropdown. It just says "No items found.&quot...
Presnell asked 16/7, 2020 at 11:36

2

I'm using Reactive Form with Custom Form Control in my Angular 9 application. I wrapped my ng-select control with Custom Form Control. And I have problem with validation. I set formControl to be ...

1

Solved

I want to merge two API fields "code and name" in ng-select dropdown. For example:- Code : MI name : MI 3sPrime Format : MI - MI 3sPrime I used the below code for dropdown Component.Html ...
Masticate asked 11/6, 2019 at 12:57

© 2022 - 2024 — McMap. All rights reserved.