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
@@ -465,7 +465,7 @@ The following props are passed to the `BaseInputTemplate`:
465
465
-`onBlur`: The input blur event handler; call it with the widget id and value;
466
466
-`onFocus`: The input focus event handler; call it with the widget id and value;
467
467
-`options`: A map of options passed as a prop to the component (see [Custom widget options](./custom-widgets-fields.md#custom-widget-options)).
468
-
-`options.enumOptions`: For enum fields, this property contains the list of options for the enum as an array of { label, value } objects. If the enum is defined using the oneOf/anyOf syntax, the entire schema object for each option is appended onto the { schema, label, value } object.
468
+
-`options.enumOptions`: For enum fields, this property contains the list of options for the enum as an array of \{ label, value } objects. If the enum is defined using the oneOf/anyOf syntax, the entire schema object for each option is appended onto the \{ schema, label, value } object.
469
469
-`formContext`: The `formContext` object that you passed to `Form`.
470
470
-`rawErrors`: An array of strings listing all generated error messages from encountered errors for this widget.
471
471
-`registry`: The `registry` object
@@ -497,7 +497,7 @@ function DescriptionFieldTemplate(props: DescriptionFieldProps) {
Copy file name to clipboardExpand all lines: packages/docs/docs/advanced-customization/custom-widgets-fields.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ The API allows to specify your own custom _widget_ and _field_ components:
7
7
8
8
## Customizing the default fields and widgets
9
9
10
-
You can override any default field and widget, including the internal widgets like the `CheckboxWidget` that `BooleanField` renders for boolean values. You can override any field and widget just by providing the customized fields/widgets in the `fields` and `widgets` props:
10
+
You can override any default field and widget, including the internal widgets like the `CheckboxWidget` that `BooleanField`
11
+
renders for boolean values. You can override any field and widget just by providing the customized fields/widgets in the
@@ -202,7 +204,7 @@ The following props are passed to custom widget components:
202
204
-`onBlur`: The input blur event handler; call it with the widget id and value;
203
205
-`onFocus`: The input focus event handler; call it with the widget id and value;
204
206
-`options`: A map of options passed as a prop to the component (see [Custom widget options](#custom-widget-options)).
205
-
-`options.enumOptions`: For enum fields, this property contains the list of options for the enum as an array of { label, value } objects. If the enum is defined using the oneOf/anyOf syntax, the entire schema object for each option is appended onto the { schema, label, value } object.
207
+
-`options.enumOptions`: For enum fields, this property contains the list of options for the enum as an array of \{ label, value } objects. If the enum is defined using the oneOf/anyOf syntax, the entire schema object for each option is appended onto the \{ schema, label, value } object.
206
208
-`formContext`: The `formContext` object that you passed to `Form`.
207
209
-`rawErrors`: An array of strings listing all generated error messages from encountered errors for this widget.
208
210
-`registry`: A [registry](#the-registry-object) object (read next).
0 commit comments