Hi
I defined the child widget properties directly from the main widget as described in this thread:
[Accessing a Custom widget properties from a another Custom widget prop window - #8 by Keeef]
but i don’t know how to call these properties when the widget is called via f7-popover
- context: pagewidget
label: fireplace widget
name: widget_name
required: false
type: TEXT
groupName: widget
- context: props
description: Props for the widget
label: Widget Props
name: widgetprops
required: false
type: TEXT
groupName: widget
parameterGroups:
- name: widget
description: Popover Widget
- component: oh-link
config:
action: popover
popoverOpen: .fireplace
style:
height: 22px
left: 15px
position: absolute
top: 90px
width: 22px
z-index: 2
tooltip: fireplace
visible: true
slots:
default:
- component: f7-popover
config:
class: fireplace
style:
--f7-popover-border-radius: 8px
--f7-popover-width: 495px
slots:
default:
- component: =props.widget_name
config:
???????????????????????????
for now the only working way would seem to be setting the properties one by one as follows,
- component: f7-popover
config:
class: fireplace
style:
--f7-popover-border-radius: 8px
--f7-popover-width: 495px
slots:
default:
- component: =props.widget_name
config:
header: =props.widgetprops.header
fgcolor: =props.widgetprops.fgcolor
fgcolor2: =props.widgetprops.fgcolor2
temperature: =props.widgetprops.temperature
targetTemperature: =props.widgetprops.targetTemperature
fireplace_power: =props.widgetprops.fireplace_power
start_stop_lights: =props.widgetprops.start_stop_lights
heat_low_hight: =props.widgetprops.heat_low_hight
consumption_total: =props.widgetprops.consumption_total
but I would like that all the properties and values to be automatically and dynamically defined by the widgetprops setting, so that if the child widget changes there is no need to change the main widget.
i have seen that setting a text label title: =props.widgetprops, it returns a json obj like this
{"header": "Fireplace", "fgcolor": "orange", "fgcolor2": "gray", etc....}