LeaVerou / awesomplete

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

Nothing selected message #17211

Open DjovDev opened 4 years ago

DjovDev commented 4 years ago

I have my awesomplete configured as such:

var input = document.getElementById("itemSelector");
var itemList = JSON.parse(ajax.responseText).map(function (i) { return { label: i.label, value: i.value, rack: i.rack } });
new Awesomplete(input, { minChars: 7, maxItems: 10, list: itemList });

As you can see, my list is populated with one ajax call beforehand.

If the user inputs a value that is not found, is there a possiblity to display a message "No items found"?