I would like to be able to click on an oh-gauge to perform an action (Popup a Page or Analyzer).
This topic was asked once before:
and Just gave advise:
I am however not sure how to “overlay” the oh-button on the oh-gauge. If I put the oh-button in the default slot the button is not shown and does not seem to work.
- component: oh-gauge
config:
borderBgColor: gray
borderColor: green
borderWidth: 20
class:
- margin-top
- margin-bottom
item: SunSynk_MPPT_TOTAL
labelText: MPPT Total
max: 6600
size: 150
min: 0
style:
left: 110px
type: semicircle
valueFontSize: 15
valueTextColor: green
slots: {}
- component: oh-button
config:
action: navigate
actionPage: page:SunSynk_MPPT_TOTAL
text: OPEN
Produces:
And the OPEN navigates to a page.
However not sure hwo to OVERLAY the button on the oh-gauge so it simulates an oh-gauge action?
- component: oh-gauge
config:
borderBgColor: gray
borderColor: green
borderWidth: 20
class:
- margin-top
- margin-bottom
item: SunSynk_MPPT_TOTAL
labelText: MPPT Total
max: 6600
size: 150
min: 0
style:
left: 110px
type: semicircle
valueFontSize: 15
valueTextColor: green
slots:
default:
- component: oh-button
config:
action: navigate
actionPage: page:SunSynk_MPPT_TOTAL
text: OPEN
Produces:
With no button activity.
Once again any advise will be appreciated.
Mark