Change Color of ProgressBarGadget

Just starting out? Need help? Post your questions and find answers here.
munfraid
Posts: 108
Joined: Sat Mar 24, 2018 1:33 pm

Change Color of ProgressBarGadget

Post by munfraid »

Hi, does anybody know how to change the color of the ProgressBarGadget()? Unfortunately there is nothing like SetGadgetColor().
User avatar
Peter
Posts: 1093
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Change Color of ProgressBarGadget

Post by Peter »

munfraid wrote:Hi, does anybody know how to change the color of the ProgressBarGadget()?

Code: Select all

! $("<style> .dijitProgressBarTile { background-color: red; } </style>").appendTo("head");
But then you won't have this nice animation anymore. For that you would have to dig a little deeper into your bag of tricks.

Greetings ... Peter
munfraid
Posts: 108
Joined: Sat Mar 24, 2018 1:33 pm

Re: Change Color of ProgressBarGadget

Post by munfraid »

Thanks for the fast reply, Peter, it works great - even with the animation! :)
Post Reply