Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Mar 3, 2016
1 parent d68000c commit 37217fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ $("#phone").intlTelInput("setNumber", "+44 7733 123 456");


## Static Methods

**getCountryData**
Get all of the plugin's country data - either to re-use elsewhere e.g. to populate a country dropdown - [see example](http://jackocnr.com/lib/intl-tel-input/examples/gen/country-sync.html), or to modify - [see example](http://jackocnr.com/lib/intl-tel-input/examples/gen/modify-country-data.html). Note that any modifications must be done before initialising the plugin.
```js
Expand All @@ -262,6 +263,9 @@ Load the utils.js script (included in the lib directory) to enable formatting/va
$.fn.intlTelInput.loadUtils("build/js/utils.js");
```

**~~setCountryData~~ [REMOVED]**
Set the plugin's country data. This method was removed because it makes much more sense to just use `getCountryData` and then modify that ([see example](http://jackocnr.com/lib/intl-tel-input/examples/gen/modify-country-data.html)) instead of having to generate the whole thing yourself - the country data has become increasingly complicated and for each country we now have five properties: the name, [iso2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), international dial code, priority (in case two countries have the same international dial code), and finally a list of area codes used in that country - see [data.js](https://github.com/jackocnr/intl-tel-input/blob/master/src/js/data.js#L36) for more info.

This comment has been minimized.

Copy link
@cavellblood

cavellblood Mar 3, 2016

The link to the example doesn't work. I think it should be: http://jackocnr.com/node_modules/intl-tel-input/examples/gen/modify-country-data.html.

In fact I believe all the example links need to be updated. Looks like the only difference is changing lib to node_modules.

This comment has been minimized.

Copy link
@jackocnr

jackocnr Mar 3, 2016

Author Owner

thanks will fix now

This comment has been minimized.

Copy link
@cavefurem

cavefurem Mar 6, 2016

Hi, your international telephone input does not working at the moment, does not showing the country codes.



## Events
You can listen for the following events on the input.
Expand Down

0 comments on commit 37217fe

Please sign in to comment.