6.4 KiB
6.4 KiB
title | component | label | description | source | prev |
---|---|---|---|---|---|
oh-repeater - Repeater | oh-repeater | Repeater | Iterate over an array and repeat the children components in the default slot | https://github.com/openhab/openhab-webui/edit/main/bundles/org.openhab.ui/doc/components/oh-repeater.md | /docs/ui/components/ |
oh-repeater - Repeater
Iterate over an array and repeat the children components in the default slot
Configuration
General
Name of the variable holding the current element in the iteration, it will be propagated to the children components in the default slot. 2 additional variables with the
"_idx"
and "_source"
suffixes will also be defined to hold the current index and source array, respectively.
What to iterate on
Source array (for "array" source type)
Start of range (for "range" source type)
End of range (for "range" source type)
Step of range (for "range" source type)
Group item to whose members will be iterated (for "itemsInGroup" source type)
Iterate over items with the given tags (comma-separated, for "itemsWithTags" source type)
Iterate over rules with the given tags (comma-separated, for "rulesWithTags" source type)
Iterate over the state options or command options of this item (for "itemStateOptions" or "itemCommandOptions" source type)
Fetch the metadata from these namespaces (for "itemsInGroup" and "itemsWithTags" source types)
Specify an expression WITHOUT THE = PREFIX to filter the resulting array
Specify an expression WITHOUT THE = PREFIX to transform the resulting array elements
The child components will be wrapped in a ul
HTML elements instead of a div
Add these CSS classes to the container
Add these CSS styles to the container
Render all children directly under the repeater's parent, without any container
For loaded sources (e.g. with Items or rules), the source array will be cached and not refreshed on page updates