- This topic has 1 reply, 2 voices, and was last updated 5 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Progress Bar › Changing the value label
Tagged: advanced progress bar, custom element, custom progress bar, custom value progress, format-function, progress bar custom label, smart elements, smart framework, web component, web components
Hi all !
Can tell me please how can i change the label of the progress bar ? I want to print a specific word instead of a number inside the progress bar’s value container. Code snippet please.
Thank you !
Hello hansT,
Please make use of the callback function format-function to achieve your requirement:
<script type="text/javascript">
function progressValueFormatFunction(value) {
return 'Progress label';
}
</script>
<jqx-progress-bar value="50" show-progress-value format-function="progressValueFormatFunction"></jqx-progress-bar>
Best regards,
Dimitar
Smart HTML Elements Team
https://www.htmlelements.com