I’m trying to organanize my lights within an accordion. In every row I’d like a colorpicker object and a toggle-card. Basically like this:
The obvious problem is that the colorpicker-card is just as wide as its title and the rest (red part in picture) remains unused.
component: oh-list-card
config:
accordionList: true
noChevron: true
slots:
default:
- component: f7-list-item
config:
accordionItem: true
slots:
content:
- component: oh-list-item
config:
title: Beleuchtung
icon: oh:lightbulb
default:
- component: f7-accordion-content
slots:
default:
- component: f7-list-item
config:
accordionItem: true
slots:
content:
- component: oh-colorpicker-card
config:
sliderLabel: true
sliderValue: true
item: LeuchteHuegross_Farbe
title: Licht Holger
style:
width: 400px
- component: oh-toggle-card
config:
item: EsszimmerWein
Setting width has no effect.
I tried around, without success, e.g. a code like this
component: oh-list-card
config:
accordionList: true
noChevron: true
slots:
default:
- component: f7-list-item
config:
accordionItem: true
slots:
content:
- component: oh-list-item
config:
title: Beleuchtung
- component: oh-list-item
config:
title: Anzahl Leuchten an
default:
- component: f7-accordion-content
slots:
default:
- component: oh-colorpicker-card
config:
sliderLabel: true
sliderValue: true
item: LeuchteHuegross_Farbe
title: Licht Holger
- component: oh-label-item
config:
text: right side
doesn’t show the second object:
Probably a simple change, but as I’m still somewhat unfamiliar with these objects, I don’t find it and would appreciate your help.