jQuery UI Widgets › Forums › Editors › ProgressBar › multiple change of color background
This topic contains 2 replies, has 2 voices, and was last updated by fabriceb 2 weeks, 6 days ago.
I’m using a progressbar, I want to change the background color after each change of the value (for example after a click on a button.
it seems that the template can’t be changed after initialisation.
I tried to change the css and folowed your advice seen here : https://www.jqwidgets.com/community/topic/change-the-color-of-progress-bar/
but it doesn’t work on my tries.
Here is my JSFiddle : http://jsfiddle.net/mogador/6t3Loh0r/
thanx for your help
For your situation I suggest to use the ‘colorRanges’ property.
Also take a look at this example using the propery I told you about :
many thanx but I didn’t want separate colors.
But I found with your suggestion a way to “hack” the template functionnality :
I will use just ONE color in colorchange, an apply the color of the prefered template depending on the value :
here is my new fiddle : http://jsfiddle.net/mogador/4jdnf2om/
hope it can help…
You must be logged in to reply to this topic.