[SOLVED] Put an icon in front of autocomplete component item

Hello Community,

I am wondering, is there something like itemTemplate (which exists for virtual lists) for the Autocomplete component (https://framework7.io/docs/autocomplete.html)?

The purpose is that I want to customize my autocomplete results and put an icon in front of each result I get. I haven’t found anything related to that on the docs. Is there a way to customize each items?

As you may see in docs it has renderItem parameter function, where you can return HTML string for current item. For default value check the source code https://github.com/framework7io/framework7/blob/master/src/core/components/autocomplete/autocomplete-class.js#L484

Thank you very much!