How to theme textfield autocomplete dropdown

by Alireza Tabatabaeian   Last Updated January 20, 2018 08:07 AM

I've added autocomplete functionality to my textfield, I've defined my own controller which fetch data from DB and pass them as jsonResponse.

I want a custom markup for autocomplete dropdown so it will show results in two column rather than only one column, so I used to inject my markup code as row['label'] but as the widget itself adds some markup, my injected markup is excluded.

so is there any way to theme autocomplete dropdown in drupal 8?

Related Questions

container.html.twig Themplate overwrite drupal 8

Updated August 23, 2017 08:07 AM

Drupal 8 multiple forms

Updated September 06, 2017 14:07 PM

Drupal 7 Custom Module with custom theme/template

Updated September 01, 2017 16:07 PM