Skip to main content

Groups container

system:groups

Builds groups from the current query results; after a selection only the content inside the group is shown.

Nodes are written into the body or children of a resource pack card template. Besides their own fields, all nodes share id, style, when, unless and repeat; see Common node fields.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—system:groups
sourceStringyes—Input collection, resource path or context parameter; see this page for how it is used.
filterStringno""State key read by index, used to filter the collection.
groupStringyes—Group ID parameter of each result.
group_labelStringno""Group label parameter of each result.
sectionStringno""Upper-level section parameter of the group.
section_labelStringno""Upper-level section label parameter.
orientationStringno"vertical"Group navigation orientation, vertical or horizontal.
optionsObject arrayno[]Predefined groups; each item contains id and label.
childrenCard node arrayyes—Child node array.

options entries​

FieldTypeRequiredDefaultDescription
idStringyes—Preset group ID.
labelStringyes—Display label; may contain placeholders.

JSON example​

{
"type": "system:groups",
"source": "{{entries}}",
"group": "{{entries.*.group}}",
"children": [
{
"type": "system:grid",
"source": "{{entries}}",
"columns": 3,
"max_row": 3,
"children": [
{
"type": "system:text",
"text": "{{entries.*.name}}"
}
]
}
],
"group_label": "{{entries.*.group_label}}"
}

Placed in the body of a card template or the children of a container. Placeholders come from server snapshots and client build events; changing only the JSON does not produce the missing data or business handlers.

Java entry point​

com.iafenvoy.system.screen.card.node.container.GroupsNode. This page is based on the Codec in the current 26.1.2 source.