primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Add color property to ProgressBar

Open ddevilcore opened this issue 6 years ago • 0 comments

[ ] bug report [x] feature request [ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Can i change it by props? At this moment i'm creating an app where i need to put different colors in progressbars. I've seen all the props that declares changes in progressbar on official page, but it's not working for me. I'm gonna create template like this As you can see colors in chart & progressbars are equal. This thing i've created by inherit datasets array color options from data for chart. And it's not enough. So this solution demanded of me some changes in installed primereact module. There's changes in props that would be show aria-maxValue more than 100, width update but it's not the question. My question is adding new props that i've named 'color'. And it works! Now i can pass in this prop some colors from data array for chart and it's will be fine. So, how can i solve this problem another way? Or maybe just add this prop in your progressBars?

ddevilcore avatar Jul 15 '20 11:07 ddevilcore