Latest web development tutorials
×

jQuery EasyUI Tutorial

jQuery EasyUI Tutorial jQuery EasyUI Introduction

jEasyUI application

jEasyUI Create a CRUD application jEasyUI Create a CRUD data grid jEasyUI Form CRUD application jEasyUI Create an RSS reader

jEasyUI Drag and drop

jEasyUI Basic drag and drop jEasyUI Create a drag-and-drop shopping cart jEasyUI Create a school curriculum

jEasyUI Menus and buttons

jEasyUI Create a simple menu jEasyUI Create a link button jEasyUI Create a menu button jEasyUI Create a split button

jEasyUI layout

jEasyUI Create a border layout jEasyUI Create a complex layout jEasyUI Creates a fold panel jEasyUI Create a tab page jEasyUI Dynamically add a tab jEasyUI Add the AutoPlay tab jEasyUI Create the XP style left panel

jEasyUI Data grid

jEasyUI Convert HTML tables to data grids jEasyUI Get the selected row data jEasyUI Add the query function jEasyUI Add a toolbar jEasyUI Create complex toolbars jEasyUI Sets the frozen column jEasyUI Dynamically change columns jEasyUI Format the column jEasyUI Set sort jEasyUI Custom sorting jEasyUI Create a column combination jEasyUI Add a check box jEasyUI Custom tab jEasyUI Enable in-line editing jEasyUI Extension editor jEasyUI Column operation jEasyUI Merge Cells jEasyUI Create a custom view jEasyUI Create a footer summary jEasyUI Condition Sets the line background color jEasyUI Create an attribute grid jEasyUI The extended line shows the details jEasyUI Create a subgrid jEasyUI Display massive data jEasyUI Add a paging component

jEasyUI window

jEasyUI Create a simple window jEasyUI Customize the Window Toolbar jEasyUI Window and layout jEasyUI Create a dialog box jEasyUI Customize the dialog box

jEasyUI Tree menu

jEasyUI Use the markup to create a tree menu jEasyUI Create an asynchronous tree menu jEasyUI Tree menu to add nodes jEasyUI Create a tree menu with check boxes jEasyUI Tree menu drag and drop control jEasyUI The Tree menu loads the parent / child nodes jEasyUI Create the base tree grid jEasyUI Create a complex tree grid jEasyUI Dynamic loading of tree jEasyUI The tree grid adds pagination jEasyUI Tree-lazy lazy-loading node

jEasyUI Form

jEasyUI Create an asynchronous submission form jEasyUI Form validation jEasyUI Create a tree drop-down box jEasyUI Format the drop-down box jEasyUI Filter down the data grid

jEasyUI Reference Manual

jQuery EasyUI Plugin jQuery EasyUI Extended

jQuery EasyUI form plugin - Spinner spinner

jQuery EasyUI plugin jQuery EasyUI plugin

Extended from $ .fn.validatebox.defaults. By $ .fn.spinner.defaults override the default defaults.

Spinner (spinner) to editable text box and two small buttons combine to allow users to choose from a range of values. And a combo box (combobox) similar to the spinner (spinner) allows the user to enter a value, but bought it i have drop-down list. Spinner (spinner) are create additional spinner components (for example: Numerical spinner numberspinner, time spinner timespinner, etc.) based components.

rely

  • validatebox

usage

Spinner (spinner) should be created using javascript. Created from the tag is not allowed.

<Input id = "ss" value = "2">
$ ( '# Ss'). Spinner ({
    required: true,
    increment: 10
});

Attributes

The property extends from verification box (validatebox), the following is a property of spinner (spinner) added.

名称 类型 描述 默认值
width number 该组件的宽度。 auto
height number 该组件的高度。该属性自版本 1.3.2 起可用。 22
value string 初始值。
min string 允许的最小值。 null
max string 允许的最大值。 null
increment number 点击微调器按钮时的增量值。 1
editable boolean 定义用户是否可以往文本域中直接输入值。 true
disabled boolean 定义是否禁用文本域。 false
spin function(down) 当用户点击微调按钮时调用的函数。'down' 参数指示用户是否点击了向下微调按钮。

event

名称 参数 描述
onSpinUp none 当用户点击向上微调按钮时触发。
onSpinDown none 当用户点击向下微调按钮时触发。

method

The methods extend from verification box (validatebox), the following is a method for the spinner (spinner) added.

名称 参数 描述
options none 返回选项(options)对象。
destroy none 销毁微调器(spinner)组件。
resize width 重置组件的宽度。通过传递 'width' 参数来重写初始宽度。
代码实例:
$('#ss').spinner('resize');  // resize with original width
$('#ss').spinner('resize', 200);  // resize with new width
enable none 启用组件。
disable none 禁用组件。
getValue none 获取组件的值。
setValue value 设置组件的值。
clear none 清除组件的值。
reset none 重置组件的值。该方法自版本 1.3.2 起可用。

jQuery EasyUI plugin jQuery EasyUI plugin