-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Using nested widgets #492
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
Comments
What is that const uiSchema = {
activities: {
"ui:field": CustomParentComponent,
items: {
"ui:field": CustomChildComponent,
}
}
}; Edit: here's a way to achieve what you're after. Closing. |
Doesn't https://jsfiddle.net/ymr6aeck/3/ solve your issue? |
@n1k0 Thank you. This solves my problem partially. I need to render the scheme with many levels of nesting. This is my scheme - https://jsfiddle.net/3gyh1u4w/. I want to make a render my custom components at all levels of nesting. Is it possible to render with 3-10 levels of nesting custom components ? |
I can't see why it wouldn't work. Did you try? |
@n1k0 This is code with 3 levels of nested components - https://jsfiddle.net/21964wcm/1/ and this is work. But I need the implementation in which the components do not know anything about ui:scheme. On the backend generated different schemes. The cliend side shall be automatically generated forms with different custom components. Component which one scheme - Parent to another scheme may be Child. If you have any ideas how this can be implemented using react-jsonschema-form I'll be happy. Thanks in advance for your time. |
If I understood your question correctly, you want the backend to generate different schemas, but the backend is ignorant of |
This might also be related to #477. |
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Can I use such that UI schemes ? :
When I try to code such a scheme, is drawn only CustomParentComponent.
I want to draw one component inside another component.
The text was updated successfully, but these errors were encountered: