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/advanced-customization/internals.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ This component follows [JSON Schema](http://json-schema.org/documentation.html)
14
14
15
15
The `anyOf` and `oneOf` keywords are supported; however, properties declared inside the `anyOf/oneOf` should not overlap with properties "outside" of the `anyOf/oneOf`.
16
16
17
-
You can also use `oneOf` with [schema dependencies](dependencies.md#schema-dependencies) to dynamically add schema properties based on input data.
17
+
You can also use `oneOf` with [schema dependencies](../usage/dependencies.md) to dynamically add schema properties based on input data.
18
18
19
-
The `allOf` keyword is supported; it uses [json-schema-merge-allof](https://github.com/mokkabonna/json-schema-merge-allof) to merge subschemas to render the final combined schema in the form. When these subschemas are incompatible, though (or if the library has an error merging it), the `allOf` keyword is dropped from the schema.
19
+
The `allOf` keyword is supported; it uses [json-schema-merge-allof](https://github.com/mokkabonna/json-schema-merge-allof) to merge subschemas to render the final combined schema in the form. When these subschemas are incompatible, though (or if the library has an error merging it), the `allOf` keyword is dropped from the schema.
20
20
21
21
*`"additionalProperties":false` produces incorrect schemas when used with [schema dependencies](#schema-dependencies). This library does not remove extra properties, which causes validation to fail. It is recommended to avoid setting `"additionalProperties":false` when you use schema dependencies. See [#848](https://github.com/rjsf-team/react-jsonschema-form/issues/848)[#902](https://github.com/rjsf-team/rjsf-team/issues/902)[#992](https://github.com/rjsf-team/rjsf-team/issues/992)
22
22
@@ -32,9 +32,9 @@ Check out the defaults example on the [live playground](https://rjsf-team.github
32
32
33
33
There are three different cases which need to be considered for the merging. Objects, arrays and scalar values. This library always deeply merges any defaults with the existing form data for objects.
34
34
35
-
This are the rules which are used when injecting the defaults:
35
+
This are the rules which are used when injecting the defaults:
36
36
37
-
- When the is a scalar in the form data, nothing is changed.
37
+
- When there is a scalar in the form data, nothing is changed.
38
38
- When the value is `undefined` in the form data, the default is created in the form data.
39
39
- When the value is an object in the form data, the defaults are deeply merged into the form data, using the rules defined here for the deep merge.
40
40
- Then the value is an array in the form data, defaults are only injected in existing array items. No new array items will be created, even if the schema has minItems or additional items defined.
Copy file name to clipboardExpand all lines: docs/api-reference/form-props.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The value of this prop will be passed to the `accept-charset` [HTML attribute on
6
6
7
7
## action
8
8
9
-
The value of this prop will be passed to the `action`[HTML attribute on the form](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action).
9
+
The value of this prop will be passed to the `action`[HTML attribute on the form](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action).
10
10
11
11
Note that this just renders the `action` attribute in the HTML markup. There is no real network request being sent to this `action` on submit. Instead, react-jsonschema-form catches the submit event with `event.preventDefault()` and then calls the [`onSubmit`](#onSubmit) function, where you could send a request programmatically with `fetch` or similar.
12
12
@@ -16,7 +16,7 @@ This prop allows you to validate the form data against another JSON Schema meta
16
16
17
17
## ArrayFieldTemplate
18
18
19
-
React component used to customize how alls arrays are rendered on the form. See [Custom Templates](custom-templates.md) for more information.
19
+
React component used to customize how alls arrays are rendered on the form. See [Custom Templates](../advanced-customization/custom-templates.md) for more information.
20
20
21
21
## autoComplete
22
22
@@ -57,28 +57,28 @@ This prop allows you to define custom formats for validation. See [Validation](.
57
57
58
58
## disabled
59
59
60
-
It's possible to disable the whole form by setting the `disabled` prop. The `disabled` prop is then forwarded down to each field of the form.
60
+
It's possible to disable the whole form by setting the `disabled` prop. The `disabled` prop is then forwarded down to each field of the form.
61
61
62
62
```jsx
63
63
constschema= {
64
64
type:"string"
65
65
};
66
66
67
67
render((
68
-
<Form schema={schema}
68
+
<Form schema={schema}
69
69
disabled />
70
70
), document.getElementById("app"));
71
71
```
72
72
73
-
If you just want to disable some of the fields, see the `ui:disabled` parameter in `uiSchema`.
73
+
If you just want to disable some of the fields, see the `ui:disabled` parameter in `uiSchema`.
74
74
75
75
## enctype
76
76
77
77
The value of this prop will be passed to the `enctype`[HTML attribute on the form](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype).
78
78
79
79
## extraErrors
80
80
81
-
This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used to implement asynchronous validation. See [Validation](../usage/validation.md) for more information.
81
+
This prop allows passing in custom errors that are augmented with the existing JSON Schema errors on the form; it can be used to implement asynchronous validation. See [Validation](../usage/validation.md) for more information.
82
82
83
83
## ErrorList
84
84
@@ -147,7 +147,7 @@ If set to true, turns off all validation. Set to `false` by default.
147
147
148
148
## ObjectFieldTemplate
149
149
150
-
React component used to customize how all objects are rendered in the form. See [Custom Templates](custom-templates.md) for more information.
150
+
React component used to customize how all objects are rendered in the form. See [Custom Templates](../advanced-customization/custom-templates.md) for more information.
151
151
152
152
## omitExtraData
153
153
@@ -201,7 +201,7 @@ render((
201
201
202
202
## schema
203
203
204
-
Form schema. We support JSON schema draft-07 by default. See [Schema Reference](api-reference-schema.md) for more information.
204
+
Form schema. We support JSON schema draft-07 by default. See [Schema Reference]((https://json-schema.org/draft-07/json-schema-release-notes.html) for more information.
205
205
206
206
## showErrorList
207
207
@@ -238,7 +238,7 @@ A function can be passed to this prop in order to make modifications to the defa
238
238
239
239
## uiSchema
240
240
241
-
Form uiSchema. See [uiSchema Reference](api-reference-uischema.md) for more information.
241
+
Form uiSchema. See [uiSchema Reference](uiSchema.md) for more information.
Copy file name to clipboardExpand all lines: docs/api-reference/uiSchema.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
1
# uiSchema
2
-
3
2
JSON Schema is limited for describing how a given data type should be rendered as a form input component. That's why this library introduces the concept of uiSchema.
4
3
5
4
A UI schema is basically an object literal providing information on **how** the form should be rendered, while the JSON schema tells **what**.
Copy file name to clipboardExpand all lines: docs/quickstart.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ render((
38
38
), document.getElementById("app"));
39
39
```
40
40
41
-
For more information and examples of JSON Schema properties that this library supports, see [Using JSON Schema](usage/schema.md).
41
+
For more information and examples of JSON Schema properties that this library supports, see [Using JSON Schema](/docs/usage/single.md).
42
42
43
43
## Form uiSchema
44
44
@@ -62,7 +62,7 @@ render((
62
62
```
63
63
64
64
To customize object fields in the uiSchema, the structure of the
65
-
uiSchema should be `{key: value}`, where `key` is the property key and `value` is an
65
+
uiSchema should be `{key: value}`, where `key` is the property key and `value` is an
66
66
object with the uiSchema configuration for that particular property. For example:
67
67
68
68
```jsx
@@ -127,7 +127,7 @@ render((
127
127
128
128
### Form event handlers
129
129
130
-
You can use event handlers such as `onChange`, `onError`, `onSubmit`, `onFocus`, and `onBlur` on the `<Form />` component; see the [Form Props Reference](api-reference-props.md) for more details.
130
+
You can use event handlers such as `onChange`, `onError`, `onSubmit`, `onFocus`, and `onBlur` on the `<Form />` component; see the [Form Props Reference](/docs/api-reference/form-props.md) for more details.
Copy file name to clipboardExpand all lines: docs/usage/themes.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ meaning that you must load the Bootstrap stylesheet on the page to view the form
8
8
Theme Name | Status | Package Name / Link
9
9
---------- | ------- | -----------
10
10
Bootstrap 3 (default) | Published | `@rjsf/core`
11
-
material-ui | Published | `@rjsf/material-ui`
12
-
fluent-ui | Published | `@rjsf/fluent-ui`
11
+
material-ui | Published | `@rjsf/material-ui`
12
+
fluent-ui | Published | `@rjsf/fluent-ui`
13
13
antd | Published | `@rjsf/antd`
14
14
Semantic UI | Published | `@rjsf/semantic-ui`
15
15
@@ -23,7 +23,7 @@ first install both `@rjsf/core` and `@rjsf/material-ui`. Then you can import the
23
23
importFormfrom"@rjsf/material-ui";
24
24
```
25
25
26
-
If you would like to contribute a theme with a new UI framework, please develop the theme using the `withTheme` component described in [Theme Customization](theme-customization.md) and make a PR!
26
+
If you would like to contribute a theme with a new UI framework, please develop the theme using the `withTheme` component described in [Theme Customization](../advanced-customization/custom-themes.md) and make a PR!
27
27
28
28
You can also use the uiSchema to add custom CSS class names to your form.
0 commit comments