Class: PredictionView

PredictionView()

PredictionView shows an autocomplete suggestion for the user when they are searching for a place on a map.

Screenshot

Constructor

new PredictionView()

Since:
  • 2.28.0
Source:

Extends

  • Backbone.View

Members

className :string

The HTML class to use for this view's outermost element.
Type:
  • string
Source:

classNames :Object.<string, string>

The HTML classes to use for this view's HTML elements.
Type:
  • Object.<string, string>
Source:

events :Object

The events this view will listen to and the associated function to call.
Type:
  • Object
Source:

tagName :string

The HTML element to use for this view's outermost element.
Type:
  • string
Source:

templateVars

Values meant to be used by the rendered HTML template.
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

select()

Event handler function that selects this element, deselecting any other sibling list elements.
Source:

setupListeners()

Setup all event listeners on ViewfinderModel.
Source: