JQuery EasyUI API Chinese Document-ProgressBar progress bar

Source: Internet
Author: User

Use $. fn. progressbar. defaults to override defaults.
Dependency
None
Usage example
Create ProgressBar
ProgressBar can be created from html tags or programmed. It is easier to create a tag by adding the 'easyui-ssssbar' class to the <div/> tag.
Copy codeThe Code is as follows: <div id = "p" class = "easyui-progressbar" style = "width: 400px;"> </div>

Get or set the value
We get the current value and set a new value for this component.
Copy codeThe Code is as follows:
Var value = $ ('# p'). progressbar ('getvalue ');
If (value <100 ){
Value + = Math. floor (Math. random () * 10 );
$ ('# P'). progressbar ('setvalue', value );
}

Features

Name

Type

Description

Default Value

Width

String

SetProgressbar.

Auto

Value

Number

Percentage value.

0

Text

String

The template of the text displayed on the component.

{Value} %

Event

Name

Parameters

Description

OnChange

NewValue, oldValue

Triggered when the value changes.

Method

Name

Parameters

Description

Options

None

ReturnOptionsObject.

Resize

Width

Adjust the component size.

GetValue

None

Returns the current progress value.

SetValue

Value

Set a new progress value.

Related Article

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.