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: docs/form-customization.md
+15-3
Original file line number
Diff line number
Diff line change
@@ -248,11 +248,23 @@ const uiSchema = {
248
248
};
249
249
```
250
250
251
-
### Object item options
251
+
### Object additional properties
252
252
253
-
#### `expandable` option
253
+
You can define `additionalProperties` by setting its value to a schema object, such as the following:
254
254
255
-
If `additionalProperties` contains a schema object, an add button for new properties is shown by default. The UX for editing properties whose names are user-defined is still experimental.
255
+
```js
256
+
constschema= {
257
+
"type":"object",
258
+
"properties": {"type":"string"},
259
+
"additionalProperties": {"type":"number"}
260
+
}
261
+
```
262
+
263
+
In this way, an add button for new properties is shown by default. The UX for editing properties whose names are user-defined is still experimental.
264
+
265
+
You can also define `uiSchema` options for `additionalProperties` by setting the `additionalProperties` attribute in the `uiSchema`.
266
+
267
+
#### `expandable` option
256
268
257
269
You can turn support for `additionalProperties` off with the `expandable` option in `uiSchema`:
0 commit comments