Jquery Easyui Progress bar Component Progress use details (8) _jquery

Source: Internet
Author: User

This example for you to share the Jquery Easyui progress bar Components of the implementation code for your reference, the specific contents are as follows

Load mode

Class load

<div class= "Easyui-progressbar" data-options= "value:60" style= "width:400px"; >
</div>

JS Call load

<div id= "box" style= "width:400px;" ></div>
<script>
 $ (function () {
  $ (' #box '). ProgressBar ({
     //Set progress bar width
     : ' //
     Set progress bar height: ' m ',//
    Set progress bar value
    : ',//
    set progress bar% template
    text: '% {value} '
  });
  });

</script>

Property List

Events List

<script>
   $ (function () {
    $ (' #box '). ProgressBar ({
     //Set progress bar width
     : ',
     //Set progress bar height
     Height: ',//
     Set progress bar value
     : '% ',
     //Set progress bar% template
     text: '% {value} '
     //////
     Onchange:function (newvalue,oldvalue) {
      console.log ("New value:" +newvalue);
      Console.log ("Old value:" +oldvalue);
     },

  }); </script>

Method List

<script>
   $ (function () {
    $ (' #box '). ProgressBar ({
     value: '),
     onchange:function (NewValue, OldValue) {
      console.log (' NEW: ' + NewValue + ', old: ' + oldValue);
     },
    });

    Returns the Property object
    console.log (' #box '). ProgressBar (' options '));
    Set the component size (width)
    $ (' #box '). ProgressBar (' resize ', ');
    Returns the current progress value
    console.log (' #box '). ProgressBar (' GetValue '));
    Sets a new progress value of
    $ (' #box '). ProgressBar (' SetValue ', ' m ');
    You can use $.fn.progressbar.defaults to override the default value object.
    $.fn.progressbar.defaults.value = ' n ';
   };

  </script>

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.