HTML Elements Forums Progress Bar Changing the value label

This topic contains 1 reply, has 2 voices, and was last updated by  Anonymous 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #99579

    Anonymous

    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 !

    #99581

    Anonymous

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.