Hi All.
I have a strange issue that I cannot seem to debug at all.
I have created a widget that pops up a f7-block
when one of the components is pressed as follows:
This works from the Widget Editor as well as my Overview-Test page.
However if I use the exact same code on my Overview page, the popup just does not happen. The press is detected but nothing pops up:
I have cut down the code as much as I can to try and see what the issue is, but just no luck.
I have tried on a clean install by adding just this Cell to the overview page and get the same issue - so it appears this is something to do with the overview page.
I have other widgets on the Overview that do a similar Popup with no issue, so I am at a loss.
The code is as follows:
component: oh-cell
config:
on: true
title: Test
slots:
background:
- component: f7-block
config:
style:
height: 100%
margin: 0
padding: 0
position: absolute
width: 100%
- component: f7-block
config:
style:
bottom: 5px
left: 0px
margin: 0
padding: 0
position: absolute
width: 100%
slots:
default:
- component: oh-button
config:
popupOpen: .test1234-pop
style:
height: 100%
width: 100%
text: OPEN
- component: f7-popup
config:
class: test1234-pop
style:
--f7-popup-tablet-height: 720px
--f7-popup-tablet-width: 360px
background-color: rgb(220,220,220)
border-radius: 30px
height: 720px
text-overflow: ellipsis
width: 360px
slots:
default:
- component: f7-block
config:
popupClose: .test1234-pop
style:
--f7-popup-tablet-height: 720px
--f7-popup-tablet-width: 360px
background-color: rgb(220,220,220)
border-radius: 30px
height: 720px
margin: 0
padding: 0
text-overflow: ellipsis
width: 360px
slots:
default:
- component: oh-button
config:
clearVariable:
- mpptDetailShow
large: true
popupClose: .modal-in
style:
background: rgb(220,220,220)
color: white
display: flex
height: 30px
left: 5px
position: absolute
top: 5px
width: 30px
z-index: 999
slots:
default:
- component: f7-icon
config:
color: white
f7: clear_fill
style:
color: black
font-size: 20px
margin: auto
- component: Label
config:
style:
font-size: 25px
font-weight: 500
padding-left: 50px
width: 100%
text: Test
- component: f7-block
config:
style:
margin: 0
padding: 0
top: 0px
slots:
default:
- component: oh-link
config:
action: variable
actionVariable: mpptDetailShow
actionVariableValue: '=(vars.mpptDetailShow == "null") ? true : !(vars.mpptDetailShow)'
style:
height: 100%
width: 100%
z-index: 0
slots:
default:
- component: oh-gauge
config:
borderBgColor: gray
borderColor: green
borderWidth: 20
class:
- margin-top
- margin-bottom
value: 4400
labelText: MPPT Total
max: 6600
min: 0
size: 150
style:
left: 5px
type: semicircle
valueFontSize: 15
valueTextColor: green
- component: f7-block
config:
style:
background: white
border: 1px solid black
border-radius: 20px
left: 15px
margin: 0
opacity: 1
overflow: hidden
padding: 0
position: absolute
top: 133px
width: 330px
visible: =(vars.mpptDetailShow) == true
slots:
default:
- component: oh-gauge
config:
borderBgColor: gray
borderColor: green
borderWidth: 20
class:
- margin-top
- margin-bottom
value: 1500
labelText: MPPT 1
max: 3300
min: 0
size: 145
style:
left: 10px
margin: 0
padding: 0
type: semicircle
valueFontSize: 15
valueTextColor: green
Any suggestions on what the issue might be?
Thanks
Mark