Home  >  Article  >  Web Front-end  >  jQuery EasyUI API Chinese documentation - NumberBox number box_jquery

jQuery EasyUI API Chinese documentation - NumberBox number box_jquery

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

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.

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