-
-
Notifications
You must be signed in to change notification settings - Fork 13
function_searchView
Wesley de Groot edited this page Jan 2, 2016
·
11 revisions
create a nice searchView (with support of objects)
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 |
tvOS.searchView(search, results, items, function (typed) {
console.log('Typed: ' + typed)
}, function (selected) {
console.log('Selected: ' + selected)
})
Wesley de Groot • CC-BY 4.0