Home > Web Front-end > JS Tutorial > body text

jQuery EasyUI API Chinese Documentation - ProgressBar progress bar_jquery

WBOY
Release: 2016-05-16 18:01:26
Original
1313 people have browsed it

Override defaults with $.fn.progressbar.defaults.
Dependencies
none
Usage example
Create ProgressBar
ProgressBar can be created from html markup or programmatically. To make it easier to create from markup, add the 'easyui-progressbar' class to the

tag.

Copy code The code is as follows:


Getting or setting a value
We get the current value and set a new value for this component.
Copy code The code is as follows:

var value = $('#p').progressbar ('getValue');
if (value < 100){
value = Math.floor(Math.random() * 10);
$('#p').progressbar('setValue ', value);
}

特性

名称

类型

说明

默认值

width

string

设置progressbar的宽度。

auto

value

number

百分比值。

0

text

string

显示在组件上的文字的模板。

{value}%

事件

名称

参数

说明

onChange

newValue,oldValue

当值改变的时候触发。

方法

名称

参数

说明

options

none

返回options对象。

resize

width

调整组件尺寸。

getValue

none

返回当前的进度值。

setValue

value

Sets a new progress value.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!