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
1 answer

Mongoose new Schema post sub array with ng-select

I have this Schema: const userSchema = new Schema({ email: String, skills: { name: String, label: String } }) module.exports = mongoose.model('user', userSchema, 'users') Using ng-select…
0
votes
0 answers

how to properly bind loaded data to @ng-select, angular6

i have using ng-select with async list i'dont know how to binding selected object
0
votes
1 answer

How to dynamically inject an object to the formArrayName in angular reactive forms

I am loading my array of objects response into a multiselect (ng-select). My response is like this The formModel is like this clientForm = this.fb.group({ custom : this.fb.array([this.fb.group({ clientTaskId: [''], taskName:…
Deepak paramesh
  • 495
  • 1
  • 8
  • 19
0
votes
2 answers

how to add an additional property in the object that is assigned to a formControlName

I am getting a response as an array of objects like taskList = [ { 'clientTaskId' : '1', 'taskName': 'hardware setup', billableRate: '500'}, { 'clientTaskId' : '2', 'taskName': 'software installation', billableRate: '250'}, { 'clientTaskId' : '3',…
Deepak paramesh
  • 495
  • 1
  • 8
  • 19
0
votes
2 answers

How to sort ng-select matched record on top in ng-select angular 5

I am using ng-select autocomplete in my angular application for biding country name and country code. Example - If i enter in search box result will be India - IN Indonesia - ID At a time of loading the i retrieved list of all country code with…
Satyam Shukla
  • 103
  • 1
  • 2
  • 8
0
votes
1 answer

When i try to use ng-select2/ng2-select/ng2-select2 with angular 5 project @types/select2 package gives a error

ERROR in node_modules/@types/select2/index.d.ts(163,18): error TS2430: Interface 'AjaxOptions' incorrectly extends interface 'Pick string)' is not assignable to type 'string'. Type '(params: QueryOptions) => string' is not assignable to type…
Biswajit Patra
  • 101
  • 1
  • 2
  • 11
0
votes
2 answers

Ng-Select do not disable element with Bootstrap 4

I am using ng-select (https://github.com/ng-select/ng-select) in my Angular 6 project and I upgraded recently to Bootstrap 4. Since then, I noticed that my custom logic to disable elements is now not working anymore.
Giuseppe Canto
  • 159
  • 1
  • 1
  • 14
0
votes
1 answer

Angular5 ngselect with object doesn't select

I'm pretty new to Angular and I'm looking for a good way to solve this issue but posts I've read were not relevant. I have a first dropdown that needs to store objects, then upon selecting there a second dropdown that needs to be populated. This is…
Qualaelay
  • 713
  • 2
  • 10
  • 21
0
votes
0 answers

How to add routerLink when browser was mobile size?

Anyone please advice what is the proper way to do it, I want to enable the [routerLink]="onClickSearch()" when the browser size is mobile then disable it when it not. Jquery Code: $(function(){ var $container1 = $('#container1'), $body =…
JAIME GAFFOD JR
  • 103
  • 1
  • 1
  • 8
0
votes
1 answer

ng-2 select (typed) not working properly is there a fix ?

I am using ng-select (typed) property which is bind to an event which goes to server when the input is longer then 3 characters . The problem is that when the event is triggered nothing happens , I need to manualy delete input text in order to see…
0
votes
1 answer

basvandenberg/ng-select issue with simple string array

I'm using the following ng-select module and I am having issues using it with simple arrays. https://github.com/basvandenberg/ng-select The option format it expects is an array of objects: { value: string; label: string; } But I don't have…
kisonay
  • 351
  • 2
  • 7
  • 15
0
votes
2 answers

Angular 4 ng-select Dynamic Default Values

I have a form for ng-select component, which shows the roles of a user, in my Angular 4 project. In that component, first I need to get the user roles and show them as default values. To be able to do that, I am using FormControls in ngOnInit.…
esdoodle
  • 247
  • 2
  • 21
0
votes
1 answer

How to select a default option in ng2 using child component

I'm building an app where I built an input component that can adapt to be and text input, a select, text area, etc... So I create a model for that, where I send all the information it needs so the component can adapt to what I need. I'm also using…
Faabass
  • 1,394
  • 8
  • 29
  • 58
0
votes
1 answer

angular 4 ng-select converting data

Created an angular project using angular-cli I am using https://github.com/basvandenberg/ng-select for modifying selectbox. Getting data from rest servis. that is my basic data [ { "name": "New York", "id": "108779345385" }, …
0
votes
1 answer

Appending ng-select on button click

I am using ng2-select in my template for selecting the items, there is a button named "Add" which when click should show another select field with list of other categories of items. For this the simplest version of my code looks like this:…
1 2 3
24
25