This topic contains 1 reply, has 2 voices, and was last updated by Anonymous 2 years ago.
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.
HTML Elements › Forums › Forms & Editors › 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
This topic contains 1 reply, has 2 voices, and was last updated by Anonymous 2 years ago.
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
You must be logged in to reply to this topic.