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.

Need an option to change color from js.

See original GitHub issue

It would be great to have a config option to change the color of both spinner and the loading bar. Something like,

cfpLoadingBarProvider.spinnerColor = '#fff';
cfpLoadingBarProvider.barColor = '#fff';

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

chieffancypantscommented, Feb 17, 2015

Sorry guys – there are other libraries which allow you to control styles and other view-related properties programmatically, but this isn’t one of them.

Part of the reason I wrote this was to avoid mixing the logic and view into one heap of JS. My apps are always styled via CSS, which makes it incredibly easy to know where to change it and override it.

deckikwokcommented, Mar 7, 2016

I’m all for css but when the library isn’t ours and is to be embedded in an unrelated app, it is best to separate that concern within the injected module or directive. Also the CSS has to be unique enough to represent the module and not cascade to other elements. Imagine if one day I have to remove the plugin, or coincidentally add another element with class name #loading-bar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the color of an option when selected - Stack Overflow
function changeColor() { var red = document.getElementById('red'); var green = document.getElementById('green'); ...
Read more >
HTML DOM Style backgroundColor Property - W3Schools
Set a background color for a document: · ; Set a background color of a specific <div> element: document.getElementById( ; Return the...
Read more >
How to change the background color after clicking the button ...
Approach 1: This approach uses JavaScript to change the background color after clicking the button. Use HTML DOM Style backgroundColor Property ...
Read more >
Change Text Color of Select Tag Option using JavaScript
In this tutorial we will learn how to Change Text Color of Select Tag Option using JavaScript. HTML onchange event, HTML Dom value...
Read more >
Applying color to HTML elements using CSS - MDN Web Docs
This article is a primer introducing each of the ways CSS color can be used in HTML.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found