Skip to content

Vue компонент для плагина DaData.ru

Notifications You must be signed in to change notification settings

forksoft/vue-suggestions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue-suggestions

Vue компонент для плагина сервиса Подсказок DaData.ru

Требования

  • Vue.js ^2.3.0

Установка

npm

$ npm install --save vue-suggestions

yarn

$ yarn add vue-suggestions

Использование

<template>
  <div>
    <VueSuggestions
        :model.sync="city"
        :coordinates.sync="coordinates"
        :placeholder="'Начните вводить'"
        :class="form-control"
        :options="suggestionOptions">
    </VueSuggestions>
  </div>
</template>

<script>
  import VueSuggestions from 'vue-suggestions';

  export default {
    data() {
      return {
        city: '',
        coordinates: {
          latitude: '',
          longitude: ''
        },
        suggestionOptions: {
          // @see https://confluence.hflabs.ru/pages/viewpage.action?pageId=207454318
          token: 'abcd123',
          type: "ADDRESS",
          scrollOnFocus: false,
          triggerSelectOnBlur: false,
          triggerSelectOnEnter: false,
          addon: 'none',
          // @see https://confluence.hflabs.ru/pages/viewpage.action?pageId=207454320
          onSelect (suggestion) {
            
          }
        },
      }
    },
    components: { VueSuggestions }
  }
</script>

About

Vue компонент для плагина DaData.ru

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 100.0%