setAsMomentary button icon

Hello,

I was wondering if there is any way to specify an icon for the momentary button attribute.
I have the following attribute descriptor:
public static final AttributeDescriptor UPDATE_ANALOG =
new AttributeDescriptor<>(“analogUpdate”,
ValueType.BOOLEAN,
new MetaItem<>(MetaItemType.LABEL, “Update Analog Value”))
.withFormat(new ValueFormat().setAsMomentary(true));

But currently the button is invisible and it appears only when I hover over it.

Untitled

Thanks a lot!

It is not implemented. Will implement it through a meta vaue and will make a PR @Rich

1 Like

Opened Added momentary button icon by accabog · Pull Request #991 · openremote/openremote · GitHub @Rich @Don .

Please note I’m not an expert in these stacks, but I think it makes sense and works well.
Thanks!
Alex

1 Like