Comments (6)
Hi @dverbovyi, unfortunately that is not possible.
Unless you need to search by the id value, you could though map the array and only pass the names to the component?
Ex
public get myValues(): string[] {
return this.myArray.map(item => item.name);
}
from ngx-chips.
I know have to grab and pass the names. Actually, it's not what I need.
I need to catch id of item inside of (onAdd)="onAdd($event)"
. Not the string only
from ngx-chips.
I see, unfortunately at the moment is not supported, but I guess I'll get on it at some point cause I see the need 👍
from ngx-chips.
@dverbovyi
I have the similar requirement to display the label name from the object instead of array of strings. Have you found a way to do that.Or do you found a better solution for it?
from ngx-chips.
Hi @dverbovyi and @anvesh48,
the latest version should make this possible :)
from ngx-chips.
Wow good news..!
Thank you so much..!
from ngx-chips.
Related Issues (20)
- Is there any way that I can set value from tagModel used in ngx-chips in angular? HOT 1
- ngx-chips 3.0.0 - angular 13.0.3 errors on build HOT 1
- ngx-chips not working with angular 12 HOT 2
- Error Compiler ngx-chips 3 and angular 13 HOT 2
- FormControl String Value HOT 1
- Improvement to Input Value Type
- allowDupes is case senitive
- Browser refreshes while add a new tag even after adding [appendToBody]= "false"
- Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) HOT 3
- Adding new tags on a new line?
- Cannot find module 'ng2-material-dropdown' from '../../node_modules/ngx-chips/fesm2015/ngx-chips.mjs' HOT 1
- Getting error in ngx-chips dependency of ng2 material dropdown HOT 5
- Wrong imports are used for rxjs operators HOT 3
- Incorrect type of onTextChange event emitter
- Dropdown and onlyFromAutocomplete always add me selected item
- ./node_modules/ngx-chips/fesm2015/ngx-chips.mjs:2540:24-32 - Error: export 'filter' (imported as 'filter$1') - Error HOT 1
- separatorKeyCodes not working for any code except 32
- Which version of ngx-chips works with Angular 10? HOT 1
- onTagEdited is not working correctly while sorting after editing
- Theme not applying to dropdown.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-chips.