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
| whitelist | List of ISO 3166-1 alpha-2 codes of the countries allowed in the list. This is mutually exclusive with `blacklist` and `whitelist`takes precedence. | string[]|[]|
229
+
| blacklist | List of ISO 3166-1 alpha-2 codes of the countries not allowed in the list. This is mutually exclusive with `whitelist` and `whitelist`takes precedence. | string[]|[]|
230
+
| priorityOptions | List of ISO 3166-1 alpha-2 codes of the countries to be displayed first in the list. Ex: ['GB', 'ES']| string[]|[]|
231
+
| search | Allows the user to search typing in the select control | boolean | false |
232
+
| flag | Shows the flag of the country before the name | boolean | false |
233
+
234
+
The countires will be displayed in the language according to the `language` attribute of the FormBuilder. It should use the ISO 639-1 code of the language to display countries names. [Available laguages](https://github.com/michaelwittig/node-i18n-iso-countries?tab=readme-ov-file#supported-languages-iso-639-1).
235
+
236
+
### Country v2 example:
237
+
238
+
```json
239
+
{
240
+
"name": "country_of_residence",
241
+
"placeholder": "Select your country of residence",
242
+
"type": "country_v2",
243
+
"label": "Country of residence",
244
+
"errorMessages": {
245
+
"required": "This field is required"
246
+
},
247
+
"registerConfig": {
248
+
"required": true
249
+
},
250
+
"config": {
251
+
"whitelist": [
252
+
"DE",
253
+
"ES",
254
+
"FR",
255
+
"IT",
256
+
"PT"
257
+
],
258
+
"priorityOptions": [
259
+
"ES",
260
+
"PT"
261
+
],
262
+
"flag": true
263
+
}
264
+
}
265
+
```
214
266
215
267
## Date
216
268
| Option | Description | Type | Default |
@@ -930,9 +982,11 @@ Next, we can see different attributes and tags to adjust the accessibility of th
930
982
<div>
931
983
<p> I confirm I am aged 18 years or older, a resident of the United Kingdom and have read and agree to the competition terms and condition and privacy policy</p>
0 commit comments