Hello,
I try to build a light widget using the oh-slider-item. The item is great - only it displays the state once again like this:
I would like to work without the state text on the far right corner - I might be able to make it white or something like this, but when using the after block, this block moves.
Like this:
and if the light is turned off:
Here the widget code snippet:
- component: oh-slider-item
config:
icon: oh:slider
iconUseState: true
item: =props.lightItem
label: true
scale: true
scaleSteps: 4
style:
text-align: left
title: =props.lightTitle
visible: =props.lightItem.includes("Dimmbar")
slots:
after:
- component: oh-toggle
config:
item: =props.lightItem
Any idea how to get this a bit nicer?
Thanks a lot.
René