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
fix: Improved the widget/field customization docs (#4302)
* fix Improved the widget/field customization docs
Updated the widget and field customization docs to add examples of wrapping a widget/field to adjust props
* Apply suggestions from code review
- Responded to reviewer feedback
Co-authored-by: Nick Grosenbacher <nickgrosenbacher@gmail.com>
---------
Co-authored-by: Nick Grosenbacher <nickgrosenbacher@gmail.com>
All the widgets that render a text input use the `BaseInputTemplate` component internally. If you need to customize all text inputs without customizing all widgets individually, you can provide a `BaseInputTemplate` component in the `templates` property of `Form` (see [Custom Templates](./custom-templates.md#baseinputtemplate)).
281
281
282
+
### Wrapping an existing widget to customize it
283
+
284
+
Sometimes you just need to customize the properties that are passed to an existing widget.
285
+
The way to do this varies based upon whether you are using core or some other theme (such as mui).
286
+
287
+
Here is an example of modifying the `SelectWidget` to change the ordering of `enumOptions`:
0 commit comments