Questions tagged [angular-ngselect]

Use this tag for the select component native to Angular that accepts multi-select and auto-complete options.

Select component native to Angular that accepts multi-select and auto-complete options

Repository: Github

369 questions
0
votes
0 answers

Is it possible to programmatically interact with an Angular app in production?

I'm working on a chrome extension that will fill out forms on different web pages. I'm getting stuck when I reach a site that uses angular. Sometimes I can manipulate the DOM and get the form to fill, but if I run into an ng-select field for…
doublea
  • 447
  • 1
  • 4
  • 11
0
votes
0 answers

ngSelect with backend API only if user types more than 4 characters

Can we use ngSelect & get datasource from backend API call in AngularJS. Backend API should be called only when user types more than 4 characters(the reason i m trying to implement this, because my datasource is pretty huge & i didn't want to load…
user3767641
  • 313
  • 2
  • 4
  • 14
0
votes
0 answers

How do I trigger a file input element in my component, while also specifying the file accept type attribute?

I have a drop down menu using ng-select, and I want a file upload dialog to appear whenever an option is selected from the menu. The menu options are for different file types. So for example if I select the "pdf" option from the menu, I want my file…
Shisui
  • 1,051
  • 1
  • 8
  • 23
0
votes
0 answers

Multi select drop down in an ag grid

I am trying to implement a multi select drop down inside a ag grid, but i am unable get anything. My code is as below. In app.componet.ts i have(Inside a columnDefs) {headerName: 'product', field:'product', editable:…
0
votes
1 answer

ng-select-ng-select has no exported member 'NG_SELECT_DEFAULT_CONFIG'

Migrating to the latest package results in the build error. ERROR in src/app/global.module.ts:106:13 - error TS2304: Cannot find name 'NG_SELECT_DEFAULT_CONFIG'. 106 provide: NG_SELECT_DEFAULT_CONFIG, providers: [ { …
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
0
votes
1 answer

How to align two ng-select components side by side in material

select in an mat-expansion-panel. I am trying to get both of my ng-selects side by side, but even when I change the width. I can't seem to get them side by side. I went to some of documention and in one of the demos. They seem to use two ng-selects…
elquesogrand
  • 197
  • 4
  • 14
0
votes
1 answer

Angular method call from a external control function

I am using the tag feature of ng-select but getting the problem when I call an angular component method from a control function. I want to call this.isValidTag(tag) and this.modalService.warn from the addTagFn(tag) Here is the html template
Shohel
  • 3,886
  • 4
  • 38
  • 75
0
votes
0 answers

Getting null(undefined) when using NgSelect with default value setting

I need to use the NgSelect drop down for PO. And I used the below codes. TS In .ts file I declare the form Group as below, createForm() { this.poFormGroup = this.fb.group({ purchaseOrderId: ['0',[]], }); } I should pass the default…
Angel Reji
  • 533
  • 2
  • 11
  • 26
0
votes
1 answer

How to remove ng-select-top in @ng-select/ng-select module

How to remove ng-select-top in @ng-select/ng-select module Disable top dropdown in @ng-select/ng-select module I want to show the only bottom dropdown in @ng-select/ng-select module
Jai Kumaresh
  • 715
  • 1
  • 7
  • 33
0
votes
2 answers

Ng Select dropdown with condition

I need to display the purchaseOrderStatusName in a NgSelect dropdown. In API different status values are available such as: OPEN,RECEIVED,CANCELLED. TS file: getAllPurchaseOrders() { …
Angel Reji
  • 533
  • 2
  • 11
  • 26
0
votes
2 answers

Conditional options binding to ng-select

I have a parent component where we have a ng-select component with 10 options which i pass into ng-select from a parent. Also i have a checkbox. my goal is to pass only 1 option when the checkbox is checked. Is there any chance to repeat default…
0
votes
2 answers

Clear value and dropdown of ng-select after select the value

I am working on an angular 8 project which contains ng-select dropdown. It is a combination of typehead and ng-select. So that I can fetch the data from the api in real time. The dropdown is working fine. But I am unable to find a functionality. I…
Arun
  • 3,640
  • 7
  • 44
  • 87
0
votes
1 answer

numbers only in ng-select

I would like to have an ng-select which allows only numbers while typing/search as it is used only for Year field Do we have a way to control what user can type…
Naresh217
  • 410
  • 1
  • 6
  • 19
0
votes
1 answer

Set selected value in the sub component in the grid. Angular 2+

Using Angular 8 and TypeScript. I have a grid with a number of internal components, one of them is Data binding is done OnInit in the child component. When data is loaded initialized I see all the values and filter is working as…
odesuk
  • 1,197
  • 1
  • 12
  • 10
0
votes
2 answers

Disabled value is not rendering

Setting disabled attribute by template works correctly, but the console shows this warning: <... ... name="Province" id="name="Province" formControlName="Province" [disabled]="this.listValues.length==0"> So, my solution coming through code it in…
Kenzo_Gilead
  • 2,187
  • 9
  • 35
  • 60