1.0.1 • Published 6 years ago
suz-claim-repo v1.0.1
Vue Dadata
It's a vue component for hinting addresses using DaData.ru.
Install
$ npm install vue-dadata --save$ yarn add vue-dadataUsage
Global
import VueDadata from '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 |
Dependencies
Issue Reporting
If you have found a bug or if you have a feature request, please report them at this repository issues section.
ToDo
Milestones
Contact me
- Site: ikloster.ru
- E-mail: ikloster@yandex.ru
- Twitter: twitter.com/IvanMonastyrev
Contributors
CHANGELOG
CONTRIBUTING
LICENSE
Copyright (c) 2019 Ivan Monastyrev ikloster@yandex.ru. Licensed under the MIT license.
1.0.1
6 years ago