ioBroker.vis-inventwo
ioBroker.vis-inventwo copied to clipboard
Allow image to be mirrored based on condition true/false
Hi folks, I hope you are allright and had a nice x-mas time.
Describe wanted Enhancement !
Currently, it is possible to
- invert the color of an image or
- set its color based on the given condition. However, it is only possible to "hard-set" the setting whether the image should be mirrored, regardless whether the condition is met.
Is it possible to make the "mirror" setting depending on the condition?
Why should we put effort in it ?
Because I ask nicely? :smirk:
I think, it could be a nice enhancement and prevents people from having to create two widgets or using two different images if they need to have different mirroring values. This should reduce the computing resources needed to show the webpage.
Also it further expands the possibilities to use the powerful widgets.
Many thanks for your time.
Sincerely pardofelis
EDIT: Maybe, as a workaround / further enhancement, allow the css-class for the images to be set differently for each condition case. That way, mirroring, image size and other settings that are only available once per widget could be outsourced in the css-file without being needed to be implemented differently in your adapter.