initial
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "The field label displayed in the edit screen",
|
||||
"minLength": 1
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"tab"
|
||||
],
|
||||
"description": "Field type identifier. Must be \"tab\" for this field type."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The field name used to save/load data. Auto-generated from label if not provided.",
|
||||
"pattern": "^[a-z_][a-z0-9_]*$"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "Unique field key. Auto-generated if not provided.",
|
||||
"pattern": "^field_[a-z0-9]+$"
|
||||
},
|
||||
"instructions": {
|
||||
"type": "string",
|
||||
"description": "Instructions displayed to editors below the field label"
|
||||
},
|
||||
"conditional_logic": {
|
||||
"type": [
|
||||
"boolean",
|
||||
"array"
|
||||
],
|
||||
"description": "Conditional logic rules. Set to false to disable, or provide rules array.",
|
||||
"default": false
|
||||
},
|
||||
"wrapper": {
|
||||
"type": "object",
|
||||
"description": "HTML wrapper attributes",
|
||||
"properties": {
|
||||
"width": {
|
||||
"type": "string",
|
||||
"description": "Width percentage (e.g., \"50\")"
|
||||
},
|
||||
"class": {
|
||||
"type": "string",
|
||||
"description": "Custom CSS classes"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "Custom HTML ID"
|
||||
}
|
||||
}
|
||||
},
|
||||
"placement": {
|
||||
"type": "string",
|
||||
"description": "Where to display the tab navigation (top or left of the fields)",
|
||||
"enum": [
|
||||
"top",
|
||||
"left"
|
||||
],
|
||||
"default": "top"
|
||||
},
|
||||
"endpoint": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this tab starts a new group of tabs. When true, creates a visual break and starts a new tabbed section.",
|
||||
"default": false
|
||||
},
|
||||
"selected": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this tab should be selected/open by default when the page loads",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"label",
|
||||
"type"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user