question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Widget Background Colors

See original GitHub issue

It would be great to be able to define background colors for widgets with a function or state map. For example, if a door sensor is on or open have a red background, as opposed to a green background if it is off or closed

Likewise, being able to simply set background colors for different entities would be useful, for example, color coding light widgets based on room or type

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
resoaicommented, Jun 21, 2018

You can access the state of a different entity like so:

state: function () {
    return this.states['sensor.other_entity'].state;
 }

You could create separate css class for each of those states. I’m sure we can work something with the background in future but we do need a better approach than simply changing the background.

0reactions
resoaicommented, Jul 3, 2018

OK! here is the link to TG: https://t.me/joinchat/CFM1kQ1ZSNL0T9RB9VwK5w

I will probably include it in README

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: cell onTap & background color - Scriptable
I created this widget recently: It pulls data from Github, gmail, and Reminders APIs and ... Feature request: cell onTap & background color....
Read more >
[Feature Request] Color Theme Selector
I think what I need to do now in my projects is to move to the 'new' list of named colours (primary, secondary,...
Read more >
How do you change the color of the widgets background?
Hi, I'm very new at servicenow development, thank you for bearing with me. How do you change the color of the widgets background?...
Read more >
How to Change Widget Background Colors Using ... - YouTube
How to update a widget's background color based on an expression in Cherwell 5.0. For example, change the background to red if #...
Read more >
Sidebar / Widget Styles - Page Builder Framework
It would be nice to be able to customize things like widget headers ( background and color ), widget link colors, and widget...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found