LeaVerou / awesomplete

Ultra lightweight, usable, beautiful autocomplete with zero dependencies.
http://leaverou.github.io/awesomplete/
MIT License
6.96k stars 611 forks source link

[question] Custom container and ability to share same <ul> rather than create new identical #17216

Closed DRocksCoding closed 4 years ago

DRocksCoding commented 4 years ago

Hello and thanks for the widget.

I love it and would like to know if it's possible to re-use / share a same ul tag for a custom container.

Context: I instantiate one awesomplete per table td cells of a certain type/column. I'd like to share an identical array list so that awesomplete wouldn't need to create a new copy of the same ul in the custom container. I don't know if this would conflict with the internals but it would make more sense in this particular scenario. Currently, a new ul tag will be added inside my awesomplete custom container so there are copies of the same ul content for each td cells of that type.

Would it be possible to point new Awesomplete instances to an existing ul in our custom container? Can any one please give me some tips on this?

Thanks in advance for your time. Alex