Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@topninja/vue-dadata

topninja56MIT1.0.5TypeScript support: included

Vue component for hinting addresses using dadata.ru

vue, ts, typescript, dadata, suggestion

readme

Vue Dadata

Publish

It's a vue component for hinting addresses using DaData.ru.

Link to RU documentation

Install

npm package

$ npm install @fivestarsmobi/vue-dadata --save

Usage

Global

import VueDadata from '@fivestarsmobi/vue-dadata'

Vue.use(VueDadata)

Local

<template>
  <div id="app">
    <vue-dadata token="dadata_api_key"></vue-dadata>
  </div>
</template>

<script>
import VueDadata from 'vue-dadata'

export default {
  name: 'VueDadataTest',
  components: {
    'vue-dadata': VueDadata
  }
}
</script>

Properties

Prop Required Type Description
token Yes string Auth token DaData.ru
placeholder No string Text placeholder
query No string Initial state input field
autoload No boolean If true, then a request for tips will be initialed in the background in the created hook
onChange No function(suggestion: DadataSuggestion) -> void Function called when selecting a tooltip
autocomplete No string Autocomplete field
defaultClass No string Default class ofr component, default value - vue-dadata
classes No string Extra classes
inputName No string Input name attribute
fromBound No string Dadata bound type FROM
toBound No string Dadata bound type TO
highlightClassName No string CSS class name applied to highlighted text
unhighlightClassName No string CSS class name applied to unhighlighted text
highlightTag No string Type of tag to wrap around highlighted matches; defaults to mark but can also be a component
locationOptions No object Location options for choosing cities or countries
metro No boolean Metro display or not

Dependencies

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

Contributors

Licensed under the MIT license.

changelog

Changelog

Link to RU changelog

v1.4.6 - June 06, 2020

Add ci/cd

v1.3.2 - June 06, 2020

RU documentation

v1.3.0 - June 05, 2020

Add new props

v1.2.0 - February 09, 2020

Proxy attributes

v1.1.0 - October 31, 2019

Add url props

v1.0.0 - October 27, 2019

First release

v0.1.2 - October 27, 2019

Pre-release

v0.1.1 - October 26, 2019

Test npm

v0.1.0 - October 17, 2019

Repository was initialized