Thanks. I created a widget with 4 columns (name, icon, On button and Off button) and used it as ‘Default Standalone Widget’ and ‘Default List Item Widget’.
Any idea why it overlaps the “Close” button?
uid: test2
tags: []
props:
parameters:
- description: test
label: Description
name: Title
required: false
type: TEXT
- context: item
description: test
label: Preset Item
name: item
required: true
type: TEXT
timestamp: Jan 29, 2021, 11:07:04 AM
component: f7-card
slots:
content:
- component: f7-row
config:
style:
height: 100%
width: 100%
slots:
default:
- component: f7-col
slots:
default:
- component: Label
config:
text: Wall
- component: f7-col
slots:
default:
- component: f7-icon
config:
f7: lightbulb
color: black
- component: f7-col
slots:
default:
- component: oh-button
config:
title: On
action: command
actionItem: =(props.item)
actionCommand: ON
fill: =items[props.item].state=="ON" ? true :false
iconColor: blue
text: On
- component: f7-col
slots:
default:
- component: oh-button
config:
title: Off
action: command
actionItem: =(props.item)
actionCommand: OFF
fill: =items[props.item].state=="OFF" ? true :false
iconColor: blue
text: Off
I don’t think you can use a card as a list widget. I don’t know the full list of widgets but I would expect there to be something like an f7-list-item or the like which would need to be your root component.