Home >Web Front-end >JS Tutorial >jQuery EasyUI API Chinese Documentation - ProgressBar progress bar_jquery

jQuery EasyUI API Chinese Documentation - ProgressBar progress bar_jquery

WBOY
WBOYOriginal
2016-05-16 18:01:261366browse

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.

Statement:
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