zoukankan      html  css  js  c++  java
  • jQuery EasyUI API 中文文档 微调器(Spinner)

    Spinner 微调器

    扩展自 $.fn.validatebox.defaults,用 $.fn.spinner.defaults 重写了 defaults

    依赖

    • validatebox

    用法

    1. <input id="ss" value="2">

    1. $('#ss').spinner({  

    2.     required:true,  

    3.     increment:10  

    4. }); 

    特性

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

    名称

    类型

    说明

    默认值

    width

    number

    组件的宽度。

    auto

    value

    string

    初始值。

    min

    string

    允许的最小值。

    null

    max

    string

    允许的最大值。

    null

    increment

    number

    点击微调器按钮时的增量值。

    1

    editable

    boolean

    定义用户是否可以往文本域中直接输入值。

    true

    disabled

    boolean

    定义是否禁用文本域。

    false

    spin

    function(down)

    当用户点击微调按钮时调用的函数。

    事件

    名称

    参数

    说明

    onSpinUp

    none

    当用户点击向上微调按钮时触发。

    onSpinDown

    none

    当用户点击向下微调按钮时触发。

    方法

    其方法扩展自 validatebox,下列是 spinner 增加的方法。

    名称

    参数

    说明

    options

    none

    返回 options 对象。

    destroy

    none

    销毁微调器组件。

    resize

    width

    重设组件的宽度。

    enable

    none

    启用组件。

    disable

    none

    禁用组件。

    getValue

    none

    获取组件的值。

    setValue

    value

    设置组件的值。

    clear

    none

    清除组件的值。

  • 相关阅读:
    struts2 标签给iterator添加自然序号
    theirtts2
    zhihutheirTTS1
    theirs《A 2019 Guide to Speech Synthesis with Deep Learning》
    theirmvsnetv00000
    theirmvsnetv2
    theirMeshCNN/
    their MVF-Net: Multi-View 3D Face Morphable Model Regression(2019 CVPR)
    their DenseFusion6dof
    C++35
  • 原文地址:https://www.cnblogs.com/hantianwei/p/2407100.html
Copyright © 2011-2022 走看看