oferh / ng2-completer

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

completerService.remote results alignment #434

Open talln6e opened 4 years ago

talln6e commented 4 years ago

I am using ng-completer with completerService.remote like this:

this.myDataRemote = completerService.remote("http://localhost:1234/api/MyApp/getData?SearchString=", "firstName,lastName,phone,eMail", "firstName,lastName,phone,eMail,dateCreated,id");

Since the results are more than one field, I would like the results to line up vertically, like an html table with TDs. The names have different lengths, and the results don't look professional.

This can be done when using the JQuery autocomplete when returning items with .append, where we are able to format with html table and style tags. With ng-completer, we have each row data, but no way to put the table tags before and after them.

Can something similar be done here?