All Projects → biigpongsatorn → vue-thailand-address-autocomplete

biigpongsatorn / vue-thailand-address-autocomplete

Licence: MIT license
🇹🇭 Autocomplete ที่อยู่ในประเทศไทย

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-thailand-address-autocomplete

vue-thailand-address
🇹🇭 Thai address input for Vue.
Stars: ✭ 44 (-10.2%)
Mutual labels:  autocomplete, address, thailand, thai, thailand-address
Awesome-Thai-Library
แหล่งรวม library ไทยๆ เกี่ยวกับ "ประเทศไทย" และ "ภาษาไทย" - Delightful Thai packages and resources
Stars: ✭ 37 (-24.49%)
Mutual labels:  thailand, thai
thai-data
รวมข้อมูล ตำบล อำเภอ และ จังหวัด ในประเทศไทย (77 จังหวัด) อ้างอิงตาม รหัสไปรษณีย์ไทย โดยที่ไม่ใช้ Server side ได้รับแรงบันดาลใจจาก เราไม่ทิ้งกัน.com
Stars: ✭ 20 (-59.18%)
Mutual labels:  thailand, thailand-address
thaiaddress
A Python Parser for Thai address
Stars: ✭ 33 (-32.65%)
Mutual labels:  address, thai
react-thailand-address-typeahead
jquery.Thailand.js in React
Stars: ✭ 78 (+59.18%)
Mutual labels:  autocomplete, address
Vue Tags Input
A tags input component for VueJS
Stars: ✭ 761 (+1453.06%)
Mutual labels:  autocomplete, vue-components
thaigov-corpus
โครงการเก็บรวบรวมข่าวสารจากเว็บไซต์รัฐบาลไทย
Stars: ✭ 19 (-61.22%)
Mutual labels:  thailand, thai
addressr
Free Australian Address Validation, Search and Autocomplete
Stars: ✭ 46 (-6.12%)
Mutual labels:  autocomplete, address
Vue Simple Suggest
Feature-rich autocomplete component for Vue.js
Stars: ✭ 324 (+561.22%)
Mutual labels:  autocomplete, vue-components
Jquery.thailand.js
ตัวช่วยกรอกที่อยู่ที่ดีที่สุดในไทย ไม่ต้องใช้ Server Side!
Stars: ✭ 490 (+900%)
Mutual labels:  autocomplete, address
Heyui
🎉UI Toolkit for Web, Vue2.0 http://www.heyui.top
Stars: ✭ 2,373 (+4742.86%)
Mutual labels:  autocomplete, vue-components
combobox-nav
Attach combobox navigation behavior to <input> or <textarea>.
Stars: ✭ 76 (+55.1%)
Mutual labels:  autocomplete
revue
Revue provides a helpful interface for testing Vue components
Stars: ✭ 16 (-67.35%)
Mutual labels:  vue-components
S2s
Coding time Compile. A tool to write code fastest.
Stars: ✭ 254 (+418.37%)
Mutual labels:  autocomplete
Inquirer Autocomplete Prompt
Autocomplete prompt for inquirer
Stars: ✭ 250 (+410.2%)
Mutual labels:  autocomplete
vim-stylus
A better vim plugin for stylus, including proper and up-to-date syntax highligting, indentation and autocomplete
Stars: ✭ 49 (+0%)
Mutual labels:  autocomplete
private-ip
Check if IP address is private.
Stars: ✭ 26 (-46.94%)
Mutual labels:  address
Openautocomplete
OpenAutoComplete -- CLI autocomplete specification
Stars: ✭ 249 (+408.16%)
Mutual labels:  autocomplete
Academic Phrases
Bypass that mental block when writing your papers.
Stars: ✭ 244 (+397.96%)
Mutual labels:  autocomplete
Autocomplete
Blazing fast and lightweight autocomplete widget without dependencies. Only 1KB gzipped. Demo:
Stars: ✭ 244 (+397.96%)
Mutual labels:  autocomplete

Buy Me A Coffee

NPM version NPM downloads License Demo Build Status

Vue Thailand Address Autocomplete 🇹🇭

Auto complete ที่อยู่ในประเทศไทยแบบสำเร็จรูป

Base on jquery.Thailand.js and thai-address-database

Very well database by @earthchie

Demo Page

Documentation & Demo Page

Install

npm install vue-thailand-address-autocomplete --save

หรือ

yarn add vue-thailand-address-autocomplete

Usage

import ThailandAutoComplete from 'vue-thailand-address-autocomplete'

Vue.component('ThailandAutoComplete', ThailandAutoComplete)

หรือ

import ThailandAutoComplete from 'vue-thailand-address-autocomplete'

export default {
  components: {
    ThailandAutoComplete
  }
}

Example

<template>
  <div>
    <ThailandAutoComplete
      v-model="district"
      type="district"
      @select="select"
      label="ตำบล"
      color="#42b883"
      size="default"
      placeholder="ตำบล..."/>

    <ThailandAutoComplete v-model="amphoe" type="amphoe" @select="select" label="อำเภอ" placeholder="อำเภอ..."/>

    <ThailandAutoComplete v-model="province" type="province" @select="select" label="จังหวัด" size="medium" color="#35495e" placeholder="จังหวัด..."/>

    <ThailandAutoComplete v-model="zipcode" type="zipcode" @select="select" size="large" color="#00a4e4" placeholder="รหัสไปรษณีย์..."/> 
  </div>
</template>

<script>
export default {
  data () {
    return {
      district: '',
      amphoe: '',
      province: '',
      zipcode: ''
    }
  },
  methods: {
    select (address) {
      this.district = address.district
      this.amphoe = address.amphoe
      this.province = address.province
      this.zipcode = address.zipcode
    }
  }
}
</script>

Options

Props

Props Type Default Description
v-model String - Binding value
type String - ประเภทของ Field ประกอบด้วย district, amphoe, province, zipcode
label String - คำอธิบายของ Field
placeholder String - placeholder ของ Field
color String - สี border ของ Field ตอน Focus และสี background ของ List
size String default ขนาดของ Field ประกอบด้วย small, default, medium, large

Events

Events Type Default Description
select Function (address) => {} Return address data (type object) when select address, คืนค่า Object ที่อยู่เมื่อเลือกที่อยู่จาก Autocomplete

Contributing

  1. Fork this repository.
  2. Create new branch with feature name.
  3. Run npm install and npm run dev.
  4. Create your feature.
  5. Commit and set commit message with feature name.
  6. Push your code to your fork repository.
  7. Create pull request. 🙂

Support

If you like this project, You can support me with starring ⭐ this project.

License

MIT

Developed with ❤️ and ☕️

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].