Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add displayValueTemplate property to ProgressBar #978

Closed
NellyHaglund opened this issue Aug 5, 2019 · 2 comments · Fixed by #984

Comments

@NellyHaglund
Copy link

commented Aug 5, 2019

I'm submitting a ...

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

Current behavior
The value used to render progress in the progress bar is as well the value showed as label.
progress-bar-percentage-label

Expected behavior
Be able to have different display value than the actual value of the progress.
progess-bar-units-done-label

Senario:
You have a checklist of things to be done. The checklist contains 5 items, out of these 2 are currently done. The actual progress bar should be 40% filled, but display 2/5 as the displayed text value.

NellyHaglund pushed a commit to NellyHaglund/primereact that referenced this issue Aug 8, 2019
NellyHaglund pushed a commit to NellyHaglund/primereact that referenced this issue Aug 8, 2019
NellyHaglund pushed a commit to NellyHaglund/primereact that referenced this issue Aug 8, 2019
mertsincan added a commit that referenced this issue Aug 27, 2019
Merge pull request #984 from NellyHaglund/feature/ProgressBar-custom-…
…display-value

Fixed #978 - Add custom display value option in progress bar

@mertsincan mertsincan reopened this Aug 27, 2019

@mertsincan mertsincan self-assigned this Aug 27, 2019

@mertsincan mertsincan added this to the 3.1.9 milestone Aug 27, 2019

@mertsincan mertsincan changed the title Add possibility to have different display value in ProgressBar Add displayValueTemplate property to ProgressBar Aug 27, 2019

@mertsincan

This comment has been minimized.

Copy link
Member

commented Aug 27, 2019

Hi @NellyHaglund,
Thanks a lot for the PR! I made some changes in it and added displayValueTemplate property to ProgressBar component. You can use it for this issue.

Best Regards,

@mertsincan

This comment has been minimized.

Copy link
Member

commented Aug 27, 2019

@mertsincan mertsincan closed this Aug 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.