Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RJSF - Details Custom Widget #236

Open
Dias999 opened this issue Sep 19, 2024 · 0 comments
Open

RJSF - Details Custom Widget #236

Dias999 opened this issue Sep 19, 2024 · 0 comments

Comments

@Dias999
Copy link
Contributor

Dias999 commented Sep 19, 2024

Sometimes we need to display custom components inside the View form of RJSF.
We normally do it with custom widgets.
Now that we have prepareDataForForm, we can create a generic custom component that accepts a ReactNode to display this data.
We will also need to change the prepareDataForForm type to accept it

Tasks:

  • Create a generic custom widget that accepts ReactNode and displays it
  • Change types of prepareDataForForm to allow ReactNode

*** This idea will probably not work if you need to edit the data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant