描述

创建一个滑动调用来设置数值,详见 http://api.jqueryui.com/slider/

参数

允许动态属性:

false
名称 必需 默认值 类型 描述
accesskey     String Set the html accesskey attribute on rendered html element
animate   false Boolean 当用户单击滑块轨道时是否平稳地滑动手柄(是否开启动画效果)
cssClass     String The css class to use for element
cssErrorClass     String The css error class to use for element
cssErrorStyle     String The css error style definitions for element to use
cssStyle     String The css style definitions for element to use
disabled   false Boolean 如果设置为true,则禁用滑块
displayValueElement     String 显示滑动条数值的 DOM 节点的 ID,创建滑动块时会将滑动块的值作为该 DOM 节点的 innerHTML
errorPosition     String Define error position of form element (top|bottom)
id     String HTML id attribute
javascriptTooltip   false Boolean Use JavaScript to generate tooltips
key     String Set the key (name, value, label) for this particular component
label     String Label expression used for rendering an element specific label
labelSeparator   : String String that will be appended to the label
labelposition     String Define label position of form element (top/left)
max   100 Integer 滑块的最大值
min   0 Integer 滑块的最小值
name     String The name to set for element
onChangeTopics     String 当用户滑动一个手柄后,滑块的值改变时,发布的消息主题。多值之间使用逗号分隔
onSlideTopics     String 鼠标滑动滑块时,发布的消息主题。多值之间使用逗号分隔
onStartTopics     String 当用户开始滑动滑块时,发布的消息主题。多值之间使用逗号分隔
onStopTopics     String 当用户滑动滑块后,发布的消息主题。多值之间使用逗号分隔
onblur     String Set the html onblur attribute on rendered html element
onchange     String Set the html onchange attribute on rendered html element
onclick     String Set the html onclick attribute on rendered html element
ondblclick     String Set the html ondblclick attribute on rendered html element
onfocus     String Set the html onfocus attribute on rendered html element
onkeydown     String Set the html onkeydown attribute on rendered html element
onkeypress     String Set the html onkeypress attribute on rendered html element
onkeyup     String Set the html onkeyup attribute on rendered html element
onmousedown     String Set the html onmousedown attribute on rendered html element
onmousemove     String Set the html onmousemove attribute on rendered html element
onmouseout     String Set the html onmouseout attribute on rendered html element
onmouseover     String Set the html onmouseover attribute on rendered html element
onmouseup     String Set the html onmouseup attribute on rendered html element
onselect     String Set the html onselect attribute on rendered html element
openTemplate     String Set template to use for opening the rendered html.
orientation   horizontal String 滑动条的滑动方向,可选值: horizontal - 水平(横向); vertical - 垂直(纵向)
range   false Boolean 滑块是否表现为一个范围
requiredLabel   false Boolean If set to true, the rendered element will indicate that input is required
requiredPosition     String Define required position of required form element (left|right)
step   1 Integer 定义slider从最小值移动到最大值的单位步长,要能被最小值和最大值整除
tabindex     String Set the html tabindex attribute on rendered html element
template     String The template (other than default) to use for rendering the element
templateDir     String The template directory.
theme     String The theme (other than default) to use for rendering the element
title     String Set the html title attribute on rendered html element
tooltip     String Set the tooltip of this particular component
tooltipCssClass   StrutsTTClassic String CSS class applied to JavaScrip tooltips
tooltipDelay   Classic String Delay in milliseconds, before showing JavaScript tooltips
tooltipIconPath     String Icon path used for image that will have the tooltip
value   0 String 设置滑动块的值

示例代码

example descript...

这里是示例代码块