onSuggestionSelected
A function the system calls when the user selects a suggestion on a search field.
Declaration
attribute function onSuggestionSelected;Discussion
Provide a callback function for the onSuggestionSelected attribute to respond to the user selecting one of a searchField’s suggestions. This value of this attribute must be a function; for example, keyboard.onSuggestionSelected = function (searchTerm) {}.