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

jQuery EasyUI API Chinese documentation - NumberBox number box_jquery

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

Extends from $.fn.validatebox.defaults, which overrides defaults with $.fn.numberbox.defaults.
Dependency
validatebox
Usage

Copy code The code is as follows:



Copy code The code is as follows:

$('#nn').numberbox({
min:0,
precision:2
});

特性

其特性扩展自 validatebox,下列是为 numberbox 增加的特性。

名称

类型

说明

默认值

disabled

boolean

定义是否禁用该域。

false

min

number

允许的最小值。

null

max

number

允许的最大值。

null

precision

number

显示在小数点后面的最大精度。

0

方法

其方法扩展自 validatebox,下列是为 numberbox 追加或重写的方法。

名称

参数

说明

disable

none

禁用该域。

enable

none

Enable this domain.

fix

none

Fix the value to a valid 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!