Vue Thailand Address Autocomplete 🇹🇭
Auto complete ที่อยู่ในประเทศไทยแบบสำเร็จรูป
Base on jquery.Thailand.js and thai-address-database
Very well database by @earthchie
Demo Page
Install
npm install vue-thailand-address-autocomplete --save
หรือ
yarn add vue-thailand-address-autocomplete
Usage
Vue
หรือ
components: ThailandAutoComplete
Example
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
- Fork this repository.
- Create new branch with feature name.
- Run
npm install
andnpm run dev
. - Create your feature.
- Commit and set commit message with feature name.
- Push your code to your fork repository.
- Create pull request. 🙂
Support
If you like this project, You can support me with starring ⭐ this project.
License
Developed with ❤️ and ☕️