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 - Slider Slider

jQuery EasyUI plugin jQuery EasyUI plugin

By $ .fn.slider.defaults override the default defaults.

Slider (slider) allows the user to select a value from a limited range. When you move the slider along the track controls, displays a message box showing the current value, the user can customize the slider by setting its properties.

rely

  • draggable

usage

When used as a form field to use from the <input> tag creates a slider (slider).

<Input class = "easyui-slider" value = "12" style = "width: 300px"
    data-options = "showTip: true, rule: [0, '|', 25, '|', 50, '|', 75, '|', 100]">

From the <div> Create a slider (slider) is also allowed, but the 'value' attribute is invalid.

<Div class = "easyui-slider" data-options = "min: 10, max: 90, step: 10" style = "width: 300px"> </ div>

Create a slide into (slider).

<Div id = "ss" style = "height: 200px"> </ div>
$ ( '# Ss'). Slider ({
    mode: 'v',
    tipFormatter: function (value) {
		return value + '%';
    }
});

Attributes

名称 类型 描述 默认值
width number 滑块(slider)的宽度。 auto
height number 滑块(slider)的高度。 auto
mode string 只是滑块(slider)的类型。可能的值:'h'(horizontal)、'v'(vertical)。 h
reversed boolean 当设置为 true 时,将会对调最小值和最大值的位置。该属性自版本 1.3.2 起可用。 false
showTip boolean 定义是否显示值信息提示框。 false
disabled boolean 定义是否禁用滑块(slider)。 false
value number 默认值。 0
min number 允许的最小值。 0
max number 允许的最大值。 100
step number 增加或减少的值。 1
rule array 在滑块旁边显示标签,'|' — 值显示线。 []
tipFormatter function 格式化滑块值的函数。返回作为提示框显示的字符串值。

event

名称 参数 描述
onChange newValue,oldValue 当文本域的值改变时触发。
onSlideStart value 当开始拖拽滑块时触发。
onSlideEnd value 当停止拖拽滑块时触发。
onComplete value 当滑块的值被用户改变时触发,无论是通过拖拽滑块改变还是通过点击滑块改变都会触发。该事件自版本 1.3.4 起可用。

method

名称 参数 描述
options none 返回滑块(slider)选项(options)。
destroy none 销毁滑块(slider)对象。
resize param 设置滑块尺寸。'param' 参数包含下列属性:
width:新的滑块宽度
height:新的滑块高度
getValue none 获取滑块(slider)的值。
setValue value 设置滑块(slider)的值。
clear none 清除滑块(slider)的值。该方法自版本 1.3.5 起可用。
reset none 重置滑块(slider)的值。该方法自版本 1.3.5 起可用。
enable none 启用滑块(slider)组件。
disable none 禁用滑块(slider)组件。

jQuery EasyUI plugin jQuery EasyUI plugin