diff --git a/bundles/org.openhab.ui/doc/components/oh-repeater.md b/bundles/org.openhab.ui/doc/components/oh-repeater.md index 7a406f122a..b246d58c95 100644 --- a/bundles/org.openhab.ui/doc/components/oh-repeater.md +++ b/bundles/org.openhab.ui/doc/components/oh-repeater.md @@ -122,6 +122,11 @@ Iterate over an array and repeat the children components in the default slot 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 + + diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/repeater.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/repeater.js index 8d650f5282..bb156793f6 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/repeater.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/repeater.js @@ -27,5 +27,6 @@ export default () => [ pb('listContainer', 'List container', 'The child components will be wrapped in a ul HTML elements instead of a div'), pt('containerClasses', 'Classes of the container', 'Add these CSS classes to the container'), pt('containerStyle', 'Styles of the container', 'Add these CSS styles to the container'), - pb('fragment', 'No container (fragment)', 'Render all children directly under the repeater\'s parent, without any container') + pb('fragment', 'No container (fragment)', 'Render all children directly under the repeater\'s parent, without any container'), + pb('cacheSource', 'Suppress source refresh', 'For loaded sources (e.g. with Items or rules), the source array will be cached and not refreshed on page updates') ] diff --git a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-repeater.vue b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-repeater.vue index 4997292258..6a189c5f81 100644 --- a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-repeater.vue +++ b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-repeater.vue @@ -1,4 +1,4 @@ -