Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show 'No results found' when input query does not match data #461

Closed
user1175 opened this issue Oct 9, 2021 · 0 comments
Closed

Show 'No results found' when input query does not match data #461

user1175 opened this issue Oct 9, 2021 · 0 comments

Comments

@user1175
Copy link

user1175 commented Oct 9, 2021

Hi, I am trying to show 'No results found' or similar messages when the input query does not match any data. Any help would be highly appreciated.

<input id="match">
<script>
var options = {
	data: [{"text": "Home", "page-link": "http://easyautocomplete.com/"},
        {"text": "Guide", "page-link": "http://easyautocomplete.com/guide"},
        {"text": "Themes", "page-link": "http://easyautocomplete.com/themes"},
        {"text": "Examples", "page-link": "http://easyautocomplete.com/examples"},
        {"text": "Download", "page-link": "http://easyautocomplete.com/download"},
        {"text": "Github", "page-link": "https://github.com/pawelczak/EasyAutocomplete"}],
getValue: "text",
template: {
type: "links",
fields: {
link: "page-link"
}
},
list: {
match: {
enabled: true
}
}
};

$("#match").easyAutocomplete(options);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant