Need an option to change color from js.
See original GitHub issueIt 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:
- Created 9 years ago
- Comments:10 (1 by maintainers)
Top 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: · body.style. ; 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.