Skip to content

layout

Layout representation format. Each representation carries the same hierarchy in a different shape.

Fileconfig/settings.yaml
Pathspec.layout
Typeenum
DefaultLAYOUT

Options

ValueDescription
LAYOUTTree structure with layout properties
PARENT_CHILDRENParent-child relationships only
BOTHInclude both representations

Example

spec:
layout: LAYOUT

Result

The same DS Alert hierarchy — a root containing decorativeIcon and children — expressed under each format.

LAYOUT — a top-level nested tree; leaves are strings, parents are name→children objects:

{
"default": {
"layout": [
{ "root": ["decorativeIcon", "children"] }
]
}
}

PARENT_CHILDREN — no top-level tree; each element carries its own parent/children:

{
"default": {
"elements": {
"root": { "children": ["decorativeIcon", "children"] },
"decorativeIcon": { "parent": "root" },
"children": { "parent": "root" }
}
}
}

BOTH emits the top-level layout tree and the per-element parent/children fields.

Further reading