Skip to content

function_searchView

Wesley de Groot edited this page Jan 2, 2016 · 11 revisions

tvOS.searchView(search, results, items, callback_on_search, callback_on_select)

create a nice searchView (with support of objects)

Parameters

Type @var Description Required
string search the title of your search field Required
string results the subtitle of your results view Required
array items the 'returned' items (see example) Required
function [callback_on_search] The callback function when searching Optional
function [callback_on_select] The callback function when clicking on a 'item' Optional

Example

tvOS.searchView(search, results, items, function (typed) {
  console.log('Typed: ' + typed)
}, function (selected) {
  console.log('Selected: ' + selected)
})



Back to function list