srchr/results

  • constructor
inherits: can.Control

new Results(element, options) shows the currentSearch's search results in a tabbed interface. It combines ui/list and ui/tabs.

new srchr.results(element, an)

new Results(element, options) shows the currentSearch's search results in a tabbed interface. It combines ui/list and ui/tabs.

Parameters

  1. element {HTMLElement}

    the elements to put the results in.

  2. an {Object}

    options object with the following properties:

    currentSearch can.compute

    The current search.

var currentSearch = can.compute({
  query: "cats",
  types: ["Google","Twitter"]
});

new Results("#results",{
  currentSearch: currentSearch
})