Monaca Onsen UI Discord Chat Github Repo

way to add onsearch event for ons-search-input component

  • 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?

  • 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!