Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
way to add onsearch event for ons-search-input component
Guest last edited by Guest
For me is missing a way to add “onsearch” attribute for ons-search-input, without this attribute, “enter” button doesn’t’ work. How do you think guys?
mcombatti last edited by
Read the docs…
<ons-search-input placeholder="Search" onchange="MySearchFunction(this.value)"></ons-search-input>
Can also add the event using addEventListener function. Or add another event such as onkeyup and listen for a specific key to trigger the search event. Could even add a timer to listen for keystrokes and live-update the search… be creative!