Giter Site home page Giter Site logo

fierce-dragon / vue-dadata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ikloster03/vue-dadata

0.0 0.0 0.0 1.96 MB

Vue component for hinting addresses using dadata.ru

License: MIT License

JavaScript 27.90% HTML 3.02% Vue 46.12% TypeScript 22.95%

vue-dadata's Introduction

Vue Dadata

Publish gitlocalized

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

Link to RU documentation

Install

npm package

$ npm install vue-dadata --save

yarn package

$ yarn add vue-dadata

Usage

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
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

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

Show project Vue Dadata

Milestones

Show milestones

Contact me

Contributors

Copyright (c) 2019 Ivan Monastyrev [email protected]. Licensed under the MIT license.

vue-dadata's People

Contributors

ikloster03 avatar roshett avatar vah-kodix-dev avatar kisilya avatar kiselev-webdev avatar alexeyklenov avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.