Skip to content

Commit 6ef1626

Browse files
authored
Merge pull request #2418 from objectstack-ai/docs/related-layout-tabs
docs(objectstack-ui): document detail.relatedLayout 'stack' | 'tabs'
2 parents 0511c4c + 3b43724 commit 6ef1626

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

skills/objectstack-ui/SKILL.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,24 @@ columns (see objectstack-data → Relationships → Detail-page related lists).
150150
Authored record pages can still place an explicit `record:related_list` (or
151151
inline-editable `record:line_items`) when they need bespoke placement.
152152

153+
**Related-list layout — `detail.relatedLayout` (`'stack'` | `'tabs'`).** By
154+
default every related list stacks under a single **Related** tab on the record
155+
detail page (`relatedLayout: 'stack'`). To promote each related table to its own
156+
**peer tab** — sitting alongside *Details* / *Activity* instead of nested under
157+
*Related* — set `relatedLayout: 'tabs'` in the object's `detail` block:
158+
159+
```typescript
160+
detail: { relatedLayout: 'tabs' } // Details · Tasks · Risks · Milestones …
161+
```
162+
163+
Pure config — no custom record page needed; the synthesized detail page emits
164+
one peer tab per related entry (label falls back to the object name, the
165+
relationship's icon carries through), with Activity/History ordered after them.
166+
Omit it (or `'stack'`) for the default single-Related-tab behavior — zero
167+
regression. Use `tabs` when a record has several substantial child tables that
168+
each deserve first-class navigation; keep `stack` when related lists are
169+
secondary to the main record body.
170+
153171
### Field Conditional Rules in Forms
154172

155173
For conditions that belong to a field's lifecycle, declare the rule on the

0 commit comments

Comments
 (0)