Relation
11/19/26Less than 1 minute
Relation
Sub-resource relation control. Renders a linked sub-resource inline, with add/remove and sorting.
Used by: relation
Also available: all common options.
| Option | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
sort | string | No | Field to sort related records by | "name", "createdAt" | |
sortDir | string | No | "asc" | Sort direction | "asc", "desc" |
direction | string | No | CSS flex direction for the button layout | "row", "column" | |
displayKey | string | No | Key used as the display label for related records | "name", "title" | |
resource | string | No | Path to the related resource.json | "./author.resource.json" |