Config Tree
Note
config_data, config_meta and config_tree objects must always be
compatible with each other and most of the time should be treated as one unit.
config_tree defines the hierarchy how the configuration directives should be
presented in generated view.
Nodes
All nodes must be placed in top level container children.
There are two types of nodes:
- Presentational
- These are the leafs of the tree. They display form fields.
- Logical
- These are the branches of the tree. They can be nested indefinitely and only serve as containers for other nodes.
Model
Each individual node consists of:
| attribute | description |
|---|---|
label* i18n |
The label of the given node. |
children* [node]|[string] |
In case of logical node holds nested nodes. In case of presentational node holds the seids of the individual fileds. |
bodyi18n |
The description of the given node. |
Example
{
"children": [
{
"label": "example:device.label",
"body": "example:device.description",
"children": [
{
"label": "example:device.details.label",
"children": ["main.device_name"]
},
{
"label": "example:device.details.people.label",
"children": [
{
"label": "example:device.details.people.admins.label",
"children": ["main.admins"]
}
]
}
]
}
]
}