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
[A prop](/components/renderer#children) to customize the form layout. Children render function receives the same props as `FormTemplate`: `formFields` and `schema`.
8
+
9
+
## Props
10
+
11
+
### formFields
12
+
13
+
*node*
14
+
15
+
Rendered fields of the form.
16
+
17
+
### schema
18
+
19
+
*object*
20
+
21
+
[Schema](/components/renderer#schema) from renderer. You can use it to extract a form title, description, or whatever you need.
22
+
23
+
## Children node minimal example
24
+
25
+
Check the [Form template documentation](/components/form-template) for detailed example.
Copy file name to clipboardExpand all lines: packages/react-renderer-demo/src/pages/components/renderer.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,12 +35,24 @@ You can use [globally defined attributes](/mappers/global-component-props).
35
35
36
36
*Component*
37
37
38
+
**Note** You have to pass at least one of `FormTemplate` or a `children` render function to render the fields.
39
+
38
40
Components which defines a template of the form. This component receives two props from the renderer: `formFields` and `schema`. `formFields` is the content of the form. You should wrap this content into your `<form>` component and add form buttons.
39
41
40
42
[Read more](/components/form-template).
41
43
42
44
---
43
45
46
+
### children
47
+
48
+
**Note** You have to pass at least one of `FormTemplate` or a `children` render function to render the fields.
49
+
50
+
*function*
51
+
52
+
Children render function. It serves the same purpose as `FormTemplate` prop. [Read more](/components/children).
0 commit comments