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
{{ message }}
Repository navigation
Commit 235fc7d
Browse filesBrowse the repository at this point in the historyBrowse files
Reverts the hold commit now the PR is open: the React ObjectForm contract
regenerated by gen:react-blocks.
Claude-Session: https://claude.ai/code/session_01JQwxbWHWPRD5rZXeY69YvL
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: skills/objectstack-ui/references/react-blocks.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,12 @@ Server-connected create/edit/view form for one object. Config props come from th
18
18
| prop | type | kind | required | description |
19
19
|------|------|------|:--------:|-------------|
20
20
|`objectName`|`string`| binding | ✓ | The object this block binds to (server-connected). |
21
-
|`formType`|`'simple' \| 'tabbed' \| 'wizard' \| 'split' \| 'drawer' \| 'modal'`| binding ||Form presentation; drawer/modal render the form in a built-in overlay (use drawerSide/drawerWidth/modalSize). |
21
+
|`formType`|`'simple' \| 'tabbed' \| 'wizard' \| 'drawer' \| 'modal'`| binding ||The form's layout (simple/tabbed/wizard), or the built-in container the block opens it in: drawer/modal (use drawerSide/drawerWidth/modalSize; contentLayout 'tabbed' puts a modal's sections on tabs). |
22
22
|`fields`|`string[]`| binding || Limit/order the fields shown (defaults to the object form fields). |
23
23
|`initialValues`|`Record<string, any>`| binding || Prefill values in create mode. |
24
24
|`customFields`|`any[]`| binding || Field definitions merged over the set generated from object metadata. With inline definitions and no data source, this becomes the only field source. |
25
25
|`readOnly`|`boolean`| binding || Render every field read-only, whatever `mode` says. |
26
-
|`modalCloseButton`|`boolean`| binding || Show the modal presentation's close button (formType 'modal'; honoured by the modal form). |
26
+
|`modalCloseButton`|`boolean`| binding || Show the close button of the block's modal container (formType 'modal'). |
27
27
|`contentLayout`|`'simple' \| 'tabbed'`| binding || How the modal presentation lays out sections; 'tabbed' needs more than one section to differ from 'simple'. |
28
28
|`confirmOnDiscard`|`boolean`| binding || Ask before discarding unsaved edits when a drawer/modal form is dismissed. Set false to close immediately. |
29
29
|`submitText`|`string`| binding || Label of the submit button. |
@@ -44,10 +44,9 @@ Server-connected create/edit/view form for one object. Config props come from th
44
44
|`layout`|`'vertical' \| 'horizontal'`| data || Field layout direction — 'vertical' (the renderer default) or 'horizontal'. Multi-column is not a layout value: set `columns`|
45
45
|`columns`|`integer`| data || Number of columns for the form body |
46
46
|`tabPosition`|`'top' \| 'bottom' \| 'left' \| 'right'`| data || Tab strip position (tabbed forms) |
47
-
|`drawerSide`|`'top' \| 'bottom' \| 'left' \| 'right'`| data || Drawer side (drawer forms) |
48
-
|`drawerWidth`|`string`| data ||[DEPRECATED → size buckets] Drawer width, e.g. "480px". A pixel width cannot be chosen without knowing the client viewport — the renderer derives it. |
|`splitDirection`|`'horizontal' \| 'vertical'`| data || Split orientation (split forms) |
47
+
|`drawerSide`|`'top' \| 'bottom' \| 'left' \| 'right'`| data || Edge the drawer container opens from, when the React `ObjectForm` block opens this form with formType 'drawer' |
48
+
|`drawerWidth`|`string`| data ||[DEPRECATED → size buckets] Width of the drawer container the React `ObjectForm` block opens with formType 'drawer', e.g. "480px". A pixel width cannot be chos… |
49
+
|`modalSize`|`'sm' \| 'default' \| 'lg' \| 'xl' \| 'full'`| data || Size bucket of the dialog a caller opens this form in: the console's New / Edit dialog, or the modal container of the React `ObjectForm` block (formType 'modal… |
51
50
|`sections`|`object[]`| data |||
52
51
|`subforms`|`object[]`| data || Inline master-detail child collections |
53
52
|`submitBehavior`|`object`| data || Post-submit behavior. On the `redirect` arm, `url` is relative-only and interpolates only declared record fields as `{{record.field_name}}`, URL-escaped. |
0 commit comments