Skip to content

Commit be86f17

Browse files
committed
updated playground
1 parent bd1267d commit be86f17

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

packages/playground/src/samples/options.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ const optionsSample: Sample = {
2121
title: 'Telephone',
2222
minLength: 10,
2323
},
24+
country: {
25+
type: 'string',
26+
title: 'Country',
27+
},
28+
email: {
29+
type: 'string',
30+
title: 'Email',
31+
},
2432
},
2533
},
2634
uiSchema: {
@@ -41,6 +49,7 @@ const optionsSample: Sample = {
4149
'ui:title': 'Surname',
4250
'ui:emptyValue': '',
4351
'ui:autocomplete': 'given-name',
52+
'ui:required': false,
4453
},
4554
age: {
4655
'ui:widget': 'updown',
@@ -62,6 +71,13 @@ const optionsSample: Sample = {
6271
inputType: 'tel',
6372
},
6473
},
74+
country: {
75+
'ui:initialValue': 'US',
76+
'ui:widget': 'hidden',
77+
},
78+
email: {
79+
'ui:required': true,
80+
},
6581
},
6682
formData: {
6783
lastName: 'Norris',

0 commit comments

Comments
 (0)