| allowDropdown | | type | "boolean" |
|---|
| description | "Whether or not to allow the dropdown" |
|---|
|
|---|
| autoInsertDialCode | | type | "boolean" |
|---|
| description | "When enabled (requires nationalMode to be disabled), the international dial code will be automatically inserted into the input" |
|---|
|
|---|
| autoPlaceholder | | type | "string" |
|---|
| description | "Set the input's placeholder to an example number for the selected country, and update it if the country changes" |
|---|
|
|---|
| customContainer | | type | "string" |
|---|
| description | "Additional classes to add to the parent div." |
|---|
|
|---|
| customPlaceholder | | type | "string" |
|---|
| description | "Change the placeholder generated by autoPlaceholder. Must return a string" |
|---|
|
|---|
| excludeCountries | | type | "array" |
|---|
| items | |
|---|
| description | "In the dropdown, display all countries except the ones you specify here." |
|---|
|
|---|
| formatOnDisplay | | type | "boolean" |
|---|
| description | "Format the input value (according to the nationalMode option) during initialisation, and on setNumber. Requires the utilsScript option" |
|---|
|
|---|
| geoIpLookup | | type | "boolean" |
|---|
| description | "When setting initialCountry to 'auto', you must use this option to specify a custom function that looks up the user's location, and then calls the success callback with the relevant country code" |
|---|
|
|---|
| hiddenInput | | type | "string" |
|---|
| description | "Add a hidden input with the given name." |
|---|
|
|---|
| initialCountry | | type | "string" |
|---|
| description | "Set the initial country selection by specifying its country code" |
|---|
|
|---|
| nationalMode | | type | "boolean" |
|---|
| description | "Format numbers in the national format, rather than the international format." |
|---|
|
|---|
| onlyCountries | | type | "array" |
|---|
| items | |
|---|
| description | "In the dropdown, display only the countries you specify" |
|---|
|
|---|
| placeholderNumberType | | type | "string" |
|---|
| description | "Specify one of the keys from the global enum intlTelInputUtils.numberType" |
|---|
|
|---|
| preferredCountries | | type | "array" |
|---|
| items | |
|---|
| description | "Specify the countries to appear at the top of the list" |
|---|
|
|---|
| separateDialCode | | type | "boolean" |
|---|
| description | "Display the country dial code next to the selected flag" |
|---|
|
|---|
| showFlags | | type | "boolean" |
|---|
| description | "Set this to false to hide the flags e.g. for political reasons" |
|---|
|
|---|
| utilsScript | | type | "string" |
|---|
| description | "Enable formatting/validation etc. by specifying the URL of the included utils.js script (or alternatively just point it to the file on cdnjs.com)" |
|---|
|
|---|