_renderItem. It is not included in the default autocomplete options, but in my case I needed to define custom rendering logic for my items. Enjoy
I have sent a pull request angular ui. See the details here
I have added support for uiConfig and change scope.$watch invokation based on Pull Request Feedback. I also published a small gist which shows how a simple ui-autocomplete can be used.
Gabriel Svennerberg - May 3, 2013
I was trying out your code and didn’t get it to work at first. I got an error where you overwrite jQuery UI’s _renderItem method. The fix was easy though. Just replace the string “autocomplete” to “ui-autocomplete”. See code below.
element.data("ui-autocomplete")._renderItem = opts._renderItem;
Cem Çapulkolig - Jun 4, 2013
element.data(“autocomplete”) ===> needs to be changed to element.data(“ui-autocomplete”) for this to work in new Jquery UI
Anatoly Mironov - Jun 5, 2013
Thank you Cem! I appreciate your help. I’ll update the post.
Sergio Giusti - Mar 3, 2016
I am trying to create a lookup column in one list that lookups data from another list in the same site, the lookup list has around 4000 items and the dropdown that appears is terrible, can I use your solution to solve this on the newitem.aspx form? if so, could you provide some instructions please. Hi, I’m a complete idiot when it comes to this stuff, I have a list called ‘Staff List’, it has a column called ‘Employee ID’. I have a document library called ‘eFiling’, it has a Lookup column called ‘Employee ID’ which is set to lookup the employee id field from the staff list. If I add a script editor to the newitem form how do I format your code so that it will work?
Pritesh - Jun 0, 2017
Getting “TypeError: element.autocomplete is not a function” error