Hi all,
I have issues creating my first own widget, can someone help me setting the right layout here? (color are just to understand what’s happening there
My challenges:
- I don’t understand why the height percentage value has no impact on the visualization and the last row overlaps the complete card
- I want to have the arrows next to the stop button (left one, right aligned, right one left aligned)
- The buttons are cutted
- There are small red dots next to the buttons, I don’t know why
- When I press a button on a tablet, not only the button is somehow highlighted but the complete cell
Result:
uid: Kachel_Garagentor
tags: []
props:
parameters:
...
parameterGroups: []
timestamp: Oct 14, 2022, 10:49:26 PM
component: f7-card
config:
noShadow: false
padding: false
style:
--f7-card-header-border-color: transparent
border-radius: 10px
box-shadow: 5px 5px 15px 1px rgba(0,0,0,0.05)
padding: 0px
background-color: rgba(240,240,240)
width: 200px
height: 200px
slots:
default:
- component: f7-card-content
slots:
default:
- component: f7-progressbar
config:
infinite: true
style:
--f7-progressbar-height: 2px
bottom: 0px
left: 0px
position: absolute
visible: "=items[props.GarageDoorMoves].state === 'OPEN' ? true : false"
- component: f7-row
config:
class:
- display-flex
- justify-content-center
- align-items-flex-start
style:
height: 10%
background-color: orange
slots:
default:
- component: f7-block-header
slots:
default:
- component: Label
config:
style:
font-size: 1.2em
font-weight: 600
text: "=props.title"
- component: f7-row
config:
class:
- justify-content-center
- align-items-flex-start
style:
height: 65%
background-color: yellow
slots:
default:
- component: oh-image
config:
style:
width: 80%
url: "='/static/icons/' + props.iconFolder + '/' + Math.round(items[props.garageDoorStatus].state) +'.png'"
visible: "true"
- component: f7-row
config:
style:
height: 25%
background-color: blue
class:
- justify-content-center
slots:
default:
- component: f7-col
config:
slots:
default:
- component: oh-button
config:
action: command
actionCommand: UP
actionItem: =props.RollerItem
iconColor: teal
iconF7: arrow_up_circle
iconSize: 40
style:
background: transparent
height: 40px
z-index: 98
- component: f7-col
slots:
default:
- component: oh-button
config:
action: command
actionCommand: STOP
actionItem: =props.RollerItem
iconColor: gray
iconF7: stop_circle
iconSize: 30
style:
background: transparent
height: 30px
z-index: 98
- component: f7-col
slots:
default:
- component: oh-button
config:
action: command
actionCommand: DOWN
actionItem: =props.RollerItem
iconColor: teal
iconF7: arrow_down_circle
iconSize: 40
style:
background: transparent
height: 40px
z-index: 98