Skip to content

Layout

Layout representation format.

Configuration

config:
format:
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.

Options

  • Default: LAYOUT
  • Values:
    • LAYOUT - Tree structure with layout properties
    • PARENT_CHILDREN - Parent-child relationships only
    • BOTH - Include both representations

Path

config.format.layout

See Also