This page is part of archived documentation for openHAB 4.3. Go to the current stable version
# oh-context - Widget Context
Non-rendered component with functions, constants, and scoped variables for widgets
# Configuration
# General
# functions
Widget Functions TEXT
Object with key:arrow-function pairs. Functions are available to expressions in all child components via the fn
object.
# constants
Widget Constants TEXT
Object with key:constant pairs. Constants are available to expressions in all child components via the const
object.
# variables
Widget Variables TEXT
Object with key:variable default value pairs. Variables are available to expressions in all child components via the vars
object and take precedence over variables with the same name from higher contexts.
Caught a mistake or want to contribute to the documentation? Edit this page on GitHub (opens new window)