You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,11 @@ Read more on `vue-form-generator`'s [instruction page](https://icebob.gitbooks.i
96
96
97
97
| Property value | Type | Default value | Description |
98
98
|--------------|----|-------------|-----------|
99
-
|`defaultCountry`|`string`|`''`| Default country, will override the country fetched from IP address of user |
100
-
|`disabledFetchingCountry`|`Boolean`|false| Disable fetching current country based on IP address of user |
99
+
|`defaultCountry`|`String`|`''`| Default country, will override the country fetched from IP address of user |
100
+
|`disabledFetchingCountry`|`Boolean`|`false`| Disable fetching current country based on IP address of user |
101
101
|`disabled`|`Boolean`|`false`| Disable input field |
102
102
|`disabledFormatting`|`Boolean`|`false`| Disable formatting the phone number in the input, the formatted result still be accessible by `formattedNumber` returned from `onInput`event|
103
-
|`placeholder`|`string`| Enter a phone number | Placeholder for the input |
103
+
|`placeholder`|`String`| Enter a phone number | Placeholder for the input |
|`wrapperClasses`|`String | Array | Object`|`''`| Custom classes for the wrapper |
114
-
|`inputClasses`|`String | Array | Object`|`''`| Custom classes for the `input`|
113
+
|`wrapperClasses`|`String`| `Array`| `Object`|`''`| Custom classes for the wrapper |
114
+
|`inputClasses`|`String`| `Array`| `Object`|`''`| Custom classes for the `input`|
115
115
|`inputId`|`String`|`''`| Custom 'id'for the `input`|
116
116
|`dropdownOptions`|`Object`|`{ disabledDialCode: false, tabindex: 0 }`| Options for dropdown, supporting `disabledDialCode` and `tabindex`|
117
117
|`inputOptions`|`Object`|`{ showDialCode: false, tabindex: 0 }`| Options for input, supporting `showDialCode` (always show dial code in the input) and `tabindex`|
@@ -128,6 +128,7 @@ Read more on `vue-form-generator`'s [instruction page](https://icebob.gitbooks.i
128
128
|`enter`|| Fires on keyup.enterevent|`onEnter` deprecated |
129
129
|`open`|| Fires when the flags dropdown opens ||
130
130
|`close`|| Fires when the flags dropdown closes ||
131
+
|`country-changed`|`Object`| Fires when country changed (even for the first time) | Available from `v2.4.2`|
131
132
132
133
## Highlights & Credits
133
134
- Telephone Number parsing, validation by [libphonenumber-js](https://catamphetamine.github.io/libphonenumber-js/).
0 commit comments