Skip to content
Guillaume Leclerc edited this page Mar 30, 2016 · 2 revisions

Description

This component display a input field with auto completion for places from google API

Important: Be sure you load the places library from google to make this component work

load("token", version, ['places']);

Properties

From the google maps api, (go to their documentation for more information)

  • bounds (2w)
  • place (2w): This is a two way reversed, you can read but write will be ignored
  • componentRestrictions (1w)
  • types (1w)

Additional (and cool) features from this library

  • placeholder (1w, String): The placeholder inside this input field
  • class (1w, String): The class to attach to the input
  • label (1w, String): A label to put in front of the input
  • selectFirstOnEnter (1w, Boolean): If true, when a user press enter and no place was selected, the first matching place is selected

Events

  • g-place_changed

Components

... More to come

Global methods

Global objects

Internals

(for contributors)

Utils

Clone this wiki locally