Files
upstream-espocrm/schema/layouts/detail.json
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 2s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 0s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

122 lines
4.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://www.espocrm.com/schema/layouts/detail.json",
"description": "A detail view layout.",
"type": "array",
"items": {
"$ref": "#/definitions/panel"
},
"definitions": {
"panel": {
"type": "object",
"description": "A panel.",
"properties": {
"label": {
"type": "string",
"description": "A translatable label."
},
"customLabel": {
"type": "string",
"description": "A custom label."
},
"name": {
"type": "string",
"description": "A name."
},
"style": {
"enum": [
"default",
"success",
"warning",
"danger"
]
},
"tabBreak": {
"type": "boolean",
"description": "Is a tab-break. The panel will be the first one in a tab."
},
"tabLabel": {
"type": "string",
"description": "A tab label. If starts with `$`, a translation of the `tabs` category is used."
},
"rows": {
"type": "array",
"description": "Rows.",
"items": {
"$ref": "#/definitions/row"
}
}
}
},
"row": {
"type": "array",
"description": "A cell.",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A name. Usually a field name."
},
"span": {
"type": "integer",
"minimum": 1,
"maximum": 4,
"description": "A cell width."
},
"label": {
"type": "string",
"description": "A translatable label (using the `fields` category)."
},
"labelText": {
"type": "string",
"description": "A label text (not-translatable)."
},
"labelTranslation": {
"type": "string",
"description": "A translatable label path. As of v10.0.0."
},
"noLabel": {
"type": "boolean",
"description": "Do not show a label."
},
"view": {
"type": "string",
"description": "An overridden field view name."
},
"type": {
"type": "string",
"description": "An overridden field type."
},
"readOnly": {
"type": "boolean",
"description": "Makes the field read-only."
},
"inlineEditDisabled": {
"type": "boolean",
"description": "Disable inline edit."
},
"params": {
"type": "object",
"additionalProperties": true ,
"description": "Overridden field parameters."
},
"options": {
"type": "object",
"additionalProperties": true ,
"description": "Field view options."
}
}
},
{
"const": false,
"description": "False designates an empty cell."
}
]
}
}
}
}