@@ -61,18 +61,18 @@ const DEMOS = [
6161 } ,
6262
6363 {
64- name : 'Choices with custom labels ' ,
65- slug : 'choices-with-custom-labels ' ,
64+ name : 'Choices with custom titles ' ,
65+ slug : 'choices-with-custom-titles ' ,
6666 schema : {
6767 type : 'object' ,
6868 keys : {
6969 country : {
7070 type : 'string' ,
7171 choices : [
72- { label : '🇦🇺 Australia' , value : 'au' } ,
73- { label : '🇮🇳 India' , value : 'in' } ,
74- { label : '🇬🇧 United Kingdom' , value : 'gb' } ,
75- { label : '🇺🇸 United States' , value : 'us' } ,
72+ { title : '🇦🇺 Australia' , value : 'au' } ,
73+ { title : '🇮🇳 India' , value : 'in' } ,
74+ { title : '🇬🇧 United Kingdom' , value : 'gb' } ,
75+ { title : '🇺🇸 United States' , value : 'us' } ,
7676 ]
7777 }
7878 }
@@ -111,17 +111,17 @@ const DEMOS = [
111111 title : 'Are you sure?' ,
112112 widget : 'radio' ,
113113 choices : [
114- { label : 'Yes' , value : true } ,
115- { label : 'No' , value : false } ,
114+ { title : 'Yes' , value : true } ,
115+ { title : 'No' , value : false } ,
116116 ]
117117 } ,
118118 isActive3 : {
119119 type : 'boolean' ,
120120 title : 'Really?' ,
121121 widget : 'select' ,
122122 choices : [
123- { label : 'Yes' , value : true } ,
124- { label : 'No' , value : false } ,
123+ { title : 'Yes' , value : true } ,
124+ { title : 'No' , value : false } ,
125125 ]
126126 } ,
127127 }
0 commit comments