Skip to content

Commit 235fc7d

Browse files
committed
chore: restore the regenerated skills reference
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>
1 parent 73eb829 commit 235fc7d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎skills/objectstack-ui/references/react-blocks.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Server-connected create/edit/view form for one object. Config props come from th
1818
| prop | type | kind | required | description |
1919
|------|------|------|:--------:|-------------|
2020
| `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). |
2222
| `fields` | `string[]` | binding | | Limit/order the fields shown (defaults to the object form fields). |
2323
| `initialValues` | `Record<string, any>` | binding | | Prefill values in create mode. |
2424
| `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. |
2525
| `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'). |
2727
| `contentLayout` | `'simple' \| 'tabbed'` | binding | | How the modal presentation lays out sections; 'tabbed' needs more than one section to differ from 'simple'. |
2828
| `confirmOnDiscard` | `boolean` | binding | | Ask before discarding unsaved edits when a drawer/modal form is dismissed. Set false to close immediately. |
2929
| `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
4444
| `layout` | `'vertical' \| 'horizontal'` | data | | Field layout direction — 'vertical' (the renderer default) or 'horizontal'. Multi-column is not a layout value: set `columns` |
4545
| `columns` | `integer` | data | | Number of columns for the form body |
4646
| `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. |
49-
| `modalSize` | `'sm' \| 'default' \| 'lg' \| 'xl' \| 'full'` | data | | Modal size (modal forms) |
50-
| `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… |
5150
| `sections` | `object[]` | data | | |
5251
| `subforms` | `object[]` | data | | Inline master-detail child collections |
5352
| `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

Comments
 (0)