Questions tagged [angular-ngselect]

Angular 5+ ng-select - Lightweight all in one UI Select, Multiselect and Autocomplete

Angular 5+ ng-select - Lightweight all in one UI Select, Multiselect and Autocomplete

Resources

294 questions
16
votes
9 answers

How to clear ng-select selection

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 a clear() method or something similar, but the…
Tim
  • 4,170
  • 4
  • 32
  • 50
16
votes
5 answers

Angular 5 ng-select how to add two values to 'bindLabel'?

I want to have ng-select with two values in property bindLabel. I have something like this:
Kacper Kapela
  • 229
  • 1
  • 4
  • 11
15
votes
8 answers

disable angular ng-select window

We are using ng-select in a project and I'm facing the problem now that I can't disabled the ng-select window. Is it possible to disable it with native code or do I need to find some custom solution?
Bogdan Tushevskyi
  • 487
  • 2
  • 8
  • 19
10
votes
3 answers

How to set default values in ng-select in angular6?

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 = [ { label : "Power", value : "P"}, { label : "Current",…
Fahad Subzwari
  • 1,307
  • 1
  • 10
  • 31
8
votes
0 answers

Add selected items to ng-select with multiple and typeahead

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 not displayed for already selected values. It is only…
eltiare
  • 1,271
  • 14
  • 22
8
votes
2 answers

ng-select multi select checkbox with reactive forms in angular 6

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 angular 6 application. I am having problem using…
Tanjore Raj
  • 115
  • 1
  • 1
  • 6
8
votes
2 answers

Angular 6 - Unable to run external functions inside a particular function

I'm using ng-select for angular 6. This is the HTML side of it:
Rosenberg
  • 2,284
  • 3
  • 26
  • 51
6
votes
2 answers

ng-select with form control required validation angular 7

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:
Cherry R
  • 77
  • 1
  • 6
6
votes
1 answer

ng-select - Change height

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 a look at customizing with styles at…
sachman
  • 283
  • 7
  • 17
6
votes
1 answer

How to search value in ngselect?

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 display the…
S.Anitha
  • 131
  • 1
  • 6
6
votes
2 answers

AngularJS ng-repeat filter based on select option

I am new to AngularJS. I am trying to filter the data set shown based on the option selected with a select box.
5
votes
2 answers

ng-select : add an extra option

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:
B45i
  • 1,317
  • 17
  • 22
5
votes
1 answer

How to search multiple fields in ng-select?

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
Angel Reji
  • 393
  • 2
  • 5
  • 20
4
votes
1 answer

Cannot read property '$ngoptionlabel' of null when using ng-select

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." In the console I have the following error: ERROR TypeError:…
Tim
  • 4,170
  • 4
  • 32
  • 50
4
votes
2 answers

Is there any way to provide custom sort at time of search on ng-select?

I have situation where I need to sort the data based on custom logic at time of search under ng-select. There is option for Search across multiple fields using [searchFn] but I need to sort the match result based on my custom logic. Is this…
Kaushik Thanki
  • 2,906
  • 2
  • 18
  • 40
1
2 3
19 20