Skip to content

Commit ed291af

Browse files
BBBn1k0
authored andcommitted
Fixes rjsf-team#201: Add an array example to the uiSchema docs (rjsf-team#209)
1 parent 4a773de commit ed291af

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,17 @@ const schema = {
168168
properties: {
169169
bar: {type: "string"}
170170
}
171+
},
172+
baz: {
173+
type: "array",
174+
items: {
175+
type: "object",
176+
properties: {
177+
description: {
178+
"type": "string"
179+
},
180+
}
181+
}
171182
}
172183
}
173184
}
@@ -177,6 +188,14 @@ const uiSchema = {
177188
bar: {
178189
"ui:widget": "textarea"
179190
}
191+
baz: {
192+
// note the "items" for an array
193+
items: {
194+
description: {
195+
"ui:widget": "textarea"
196+
}
197+
}
198+
}
180199
}
181200
}
182201

0 commit comments

Comments
 (0)