Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions content/docs/references/ui/view_config/FormSection.mdx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,8 +7,9 @@ description: FormSection Schema Reference

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **label** | `string` | optional | |
| **title** | `string` | optional | Section title |
| **label** | `string` | optional | Legacy: use title instead |
| **collapsible** | `boolean` | optional | |
| **collapsed** | `boolean` | optional | |
| **columns** | `Enum<'1' \| '2' \| '3' \| '4'>` | optional | |
| **fields** | `string[]` | ✅ | |
| **columns** | `number` | optional | Number of columns (1-4) |
| **fields** | `string[]` | ✅ | Field names to include in this section |
23 changes: 13 additions & 10 deletions packages/spec/json-schema/FormSection.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,8 +4,13 @@
"FormSection": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -16,20 +21,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand Down
46 changes: 26 additions & 20 deletions packages/spec/json-schema/FormView.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,8 +18,13 @@
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -30,20 +35,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand All@@ -57,8 +60,13 @@
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -69,20 +77,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand Down
92 changes: 52 additions & 40 deletions packages/spec/json-schema/View.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -168,8 +168,13 @@
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -180,20 +185,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand All@@ -207,8 +210,13 @@
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -219,20 +227,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand DownExpand Up@@ -414,8 +420,13 @@
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -426,20 +437,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand All@@ -453,8 +462,13 @@
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Section title"
},
"label": {
"type": "string"
"type": "string",
"description": "Legacy: use title instead"
},
"collapsible": {
"type": "boolean",
Expand All@@ -465,20 +479,18 @@
"default": false
},
"columns": {
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
],
"default": "2"
"type": "number",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Number of columns (1-4)"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Field names to include in this section"
}
},
"required": [
Expand Down
Loading