https://github.com/arm092/am-country-picker
Multilanguage country picker
https://github.com/arm092/am-country-picker
countries country country-picker es6 javascript js multilanguage
Last synced: 11 days ago
JSON representation
Multilanguage country picker
- Host: GitHub
- URL: https://github.com/arm092/am-country-picker
- Owner: arm092
- License: mit
- Created: 2021-01-07T22:18:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T07:37:55.000Z (almost 5 years ago)
- Last Synced: 2025-02-02T10:05:28.671Z (9 months ago)
- Topics: countries, country, country-picker, es6, javascript, js, multilanguage
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/am-country-picker
- Size: 727 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **Country Picker plugin for Jquery and Vanilla Js**
Usage for jQuery:
```
$('.custom-picker').amcPicker();
```
Usage for Vanilla:
```
import AmcPicker from 'am-country-picker';
const picker = new AmcPicker(document.querySlelector('.custom-picker'));
```
You can put options as second parameter.
Default options are:
```
{
//Countries codes that will be excluded from list
exclude: [],
}
```
### Changelog
**1.0.3:**
* fixed small bugs
* updated all dependencies
* added 'amc-loaded' class on select after init
**1.0.2:**
* fixed jQuery method for returning jQuery object
**1.0.1:**
* added multi language support
**1.0.0:**
** created plugin