[CRUD] Allow custom form fields#4968
[CRUD] Allow custom form fields#4968apedroferreira merged 12 commits intomui:masterfrom apedroferreira:crud-custom-form-fields
Conversation
Netlify deploy preview |
bharatkashyap
left a comment
There was a problem hiding this comment.
Great addition! Also the improvement with the slots is important, do we need to additional document it/add a demo for it?
Thanks! I guess I can add a small example, at least with |
|
Added a demo just with https://deploy-preview-4968--mui-toolpad-docs.netlify.app/toolpad/core/react-crud/#custom-form-fields |
Looks good! For the |
The |
Closes #4837
Adds new
renderFormFieldproperty to data source fields to be able to render anything as a form field. Receive arguments forvalue,onChangeanderrorto connect with the form logic.Also added slots for every field component type in the form, as well as some overall improvements around all this, such as support for the
valueFormatterfield property in the "Show" pages.https://deploy-preview-4968--mui-toolpad-docs.netlify.app/toolpad/core/react-crud/#custom-form-fields
https://deploy-preview-4968--mui-toolpad-docs.netlify.app/toolpad/core/react-crud/#slots