oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

Custom data with image and description implementation #264

Open shabbir-dhangot opened 7 years ago

shabbir-dhangot commented 7 years ago

I am using custom data by calling my rest API. I want to display some more data in small font.

I have check it support with

this.dataService = completerService.local(this.countries, "name", "name").imageField("flag");
this.dataService2 = completerService.local(this.quotes, "nm", "nm").descriptionField("qt");

How can I do the same with Custom data?

this.customData = new CustomData(http);
oferh commented 7 years ago

The CompleterItem emitted by CompleterData has description and image fields which can be populated,