Skip to content

function_CompilationView

Wesley de Groot edited this page Nov 28, 2015 · 11 revisions

tvOS.CompilationView(title, subtitle, text, image, items, buttons)

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