We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suppose you have such a combobox:
When one closes the combobox, one should be able to re-open it by clicking on the button (to the right).
Please add a toggleResults or showResults method, one could bind to the button.
toggleResults
showResults
The text was updated successfully, but these errors were encountered:
Yes, we need this method. It seems it doesn't even let me trigger showing the results with a .trigger("change") or keyup or whatever ...
Sorry, something went wrong.
Update:
I added a single line of code to the autocomplete.js file to allow external (programmatic) triggering of the search.
Add this to the connect() function in autocomplete.js:
document.addEventListener("doSearch", this.onInputChange);
Then, in your website/app, you can trigger this event manually by doing:
const event = new Event("doSearch"); document.dispatchEvent(event);
For example, if you want to trigger the search using a button press, in jQuery you could do:
$('#yourButton').click(function(e){ const event = new Event("doSearch"); document.dispatchEvent(event); });
And voila, pressing the button with id="yourButton" will trigger the search.
It's a bit hacky, but I'm not a javascript expert.
No branches or pull requests
Suppose you have such a combobox:
When one closes the combobox, one should be able to re-open it by clicking on the button (to the right).
Please add a
toggleResults
orshowResults
method, one could bind to the button.The text was updated successfully, but these errors were encountered: