[Control] searchBox

Part of: mobl::ui::generic

Arguments:

  • s : String variable/property to bind the search phrase.
  • placeholder : String = null placeholder text (appears when text field is empty, optional)
  • onsearch : Callback = null event triggered when the text field changes and user pushes done button (iOS), search button (Android) or return (desktop).

A search box control.

Example:

var phrase = ""
searchBox(phrase)
group {
  list(t in Task.searchPrefix(phrase)) {
    ...
  }
}
mobl/ui/generic/searchbox.txt · Last modified: 2013/10/01 02:29 (external edit)