primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.84k stars 4.51k forks source link

ProgressBar - Custom label #13928

Open wernigtobias opened 8 months ago

wernigtobias commented 8 months ago

Describe the feature you would like to see added

I would like to request the addition of a custom label feature for the progress bar component. This feature would allow users to set a custom label text for the progress bar, enabling more flexibility and customization.

Is your feature request related to a problem?

Yes, the current lack of a custom label field in the progress bar component limits the ability to display specific information alongside the progress bar. For instance, users may need to show progress in a format like "5h / 10h" or any other custom text, which is not possible with the current implementation.

Describe the solution you'd like

I suggest adding a new property, such as customLabel, to the progress bar component. This property should allow developers to specify a custom label text that will be displayed alongside the progress bar. For example, if the progress is at 50%, developers could set the customLabel to "6h / 12h" to represent a completion status.

Describe alternatives you have considered

Using an alternative progress bar.

Additional context

No response

mpuerto-paymefy commented 2 months ago

Any resolution?