Skip to content

Wrapper of Selectize.js plugin for location autocomplete powered by the Google Maps API

License

Notifications You must be signed in to change notification settings

comerc/selectize-placecomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selectize-placecomplete

plugin for selectize, see more (demo with select2)

Usage

$("input[name='place']").selectize
  mode: "single"
  openOnFocus: false
  delimiter: null
  onInitialize: ->
    value = this.getValue()
    place_id = $("input[name='place_id']").val()
    this.updateOption value,
      value: value
      text: value
      description: value
      place_id: place_id
  plugins:
    'placecomplete':
      selectDetails: (placeResult) ->
        $("input[name='place_id']").val(placeResult.place_id)
        return null

About

Wrapper of Selectize.js plugin for location autocomplete powered by the Google Maps API

Resources

License

Stars

Watchers

Forks

Packages

No packages published