ioBroker.vis icon indicating copy to clipboard operation
ioBroker.vis copied to clipboard

Binding for background-color does not work

Open ice987987 opened this issue 4 years ago • 14 comments

Describe the bug
Binding for background-color does not work

To Reproduce
Steps to reproduce the behavior:

  1. Create a new view in vis
  2. Go to „Eigenschaften“ -> „Aussicht“ -> section „CSS Hintergrund (background-...)
  3. Enter a binding in: „-color:“

Expected behavior
Binding is to be executed

Screenshots & Logfiles
AB7326BC-6216-4F6C-9805-D9153565E136

Versions:
Adapter version: vis: 1.3.4 JS-Controller version: 3.1.6 Node version: v12.20.1 Operating system: linux

Additional context
See https://forum.iobroker.net/topic/34532/hintergrundfarbe-als-binding-dp/6?_=1611510408865 for reference.

ice987987 avatar Jan 24 '21 18:01 ice987987

Servus Ice987987,

nimm mal die '' bei deiner Abfrage nach true weg! Somit würdest Du nach einen String erwarten. Ich geh mal davon aus das du ein bool hast.

{test:0_userdata.0.testobject;test == true ? 'geht' : 'geht nicht'}

So gehts ;-)

drohne200 avatar Jan 24 '21 19:01 drohne200

Hoi @drohne200 Genau umgekehrt ist aber beschrieben in der Doku .. es muss einen String vergleich sein:

https://github.com/ioBroker/ioBroker.vis#bindings-of-objects

Take care about types. All of them defined as strings. To be sure, that value will be treated as number use parseFloat function.

cdellasanta avatar Jan 25 '21 10:01 cdellasanta

@drohne200 {test:0_userdata.0.test.test1;test == true ? '#ffff00' : '#ff0000'} funktioniert nicht mit den genannten Versionen.

ice987987 avatar Jan 25 '21 14:01 ice987987

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar May 19 '21 16:05 stale[bot]

push

ice987987 avatar May 19 '21 17:05 ice987987

please

tomg1970 avatar May 20 '21 06:05 tomg1970

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar Sep 03 '21 02:09 stale[bot]

push

ice987987 avatar Sep 03 '21 06:09 ice987987

Das gleiche Problem hier. Wenn ich direkt eine Farbe angebe wird der Hintergrund entsprechend eingefärbt. Gebe ich ein Binding ein, bleibt der Hintergrund weiß. Der Datenpunkt ist ein String und beinhaltet #555555 .

{0_userdata.0.vis.Farben.Hintergrund}

Das Problem habe ich nur bei der Hintergrundfarbe von Views. Bei Widgets klappt alles wie es soll.

dsiggi avatar Nov 18 '21 14:11 dsiggi

Ich hab ebenfalls das Problem. Bei mir funktioniert es bei der Hintergrundfabre von Views, aber nicht bei Widgets (z.B: HTML oder SVG Shape)

selles8 avatar Mar 25 '22 11:03 selles8

ist bei mir genau so.

vonCartman avatar May 12 '22 11:05 vonCartman

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar Sep 21 '22 06:09 stale[bot]

push

ice987987 avatar Sep 21 '22 07:09 ice987987

Push

selles8 avatar Sep 21 '22 13:09 selles8

continue here: https://github.com/ioBroker/ioBroker.vis-2/issues/19

ice987987 avatar Nov 17 '22 18:11 ice987987