You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a oh-label-card, which has its item property set to some value. In the label property, I want to create an expression that references the configured item, but it seems I cannot access the current widget's properties (only the global list of items and the props for the page).
Your suggestion
I would suggest making this possible, e.g. by adding a widget predefined variable that resolves to the current widget's properties. This would allow using e.g. widget.item for my case, but also opens up room for a lot of customization by accessing the other properties.
Fixesopenhab#1025.
This introduces a new object for component configuration expressions to access the configuration of the component itself.
After this got merged, I can provide the docs update as well.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
The problem
I have a oh-label-card, which has its
item
property set to some value. In the label property, I want to create an expression that references the configured item, but it seems I cannot access the current widget's properties (only the global list ofitems
and theprops
for the page).Your suggestion
I would suggest making this possible, e.g. by adding a
widget
predefined variable that resolves to the current widget's properties. This would allow using e.g.widget.item
for my case, but also opens up room for a lot of customization by accessing the other properties.Your environment
The text was updated successfully, but these errors were encountered: