创建一个微调组件(spinner),用于处理各种数字输入。它允许用户直接输入一个值,或通过键盘、鼠标、滚轮微调改变一个已有的值。详见 http://api.jqueryui.com/spinner/
允许动态属性:false |
|||||
---|---|---|---|---|---|
名称 | 必需 | 默认值 | 类型 | 描述 | |
accesskey | String | Set the html accesskey attribute on rendered html element | |||
colspan | Integer | 控件所占的列数,只在水平布局的表单中才生效 | |||
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 | |||
culture | String | 设置区域,用于用于解析和格式化文本框中的值,主要是用于国际化,如:fr 表示法国,依赖于 Globalize 插件(https://github.com/jquery/globalize)。只在设置了 numberFormat 时该属性才会生效 | |||
disabled | false | Boolean | 如果设置为 true,则禁用该 spinner(微调组件)。 | ||
errorPosition | String | Define error position of form element (top|bottom) | |||
groupColumns | Integer | 控件所占栅栏布局的列数,如果设置了该值,则会为控件最外层的 DIV 加上 col-sm-* 的样式类 | |||
helpText | String | 帮助文本,显示在文本框的下方 | |||
icons | { down: "ui-icon-triangle-1-s", up: "ui-icon-triangle-1-n" } | String | 微调小按钮图标样式类,如:{down: 'custom-down-icon', up: 'custom-up-icon'}} | ||
id | String | HTML id attribute | |||
incremental | true | Boolean | 如果设置为 true,当按住 spinner(微调组件)按钮不放时,数值会根据 step 的值不断的增加或减少。 当设置为 false 时,所有步骤都是相等的。 | ||
inputAppend | String | 显示在文本框右侧的内容 | |||
inputPrepend | String | 显示在文本框左侧的内容 | |||
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 | |||
labelCssClass | String | 标签的 CSS 样式类 | |||
labelCssStyle | String | 标签的 CSS 样式 | |||
labelSeparator | : | String | String that will be appended to the label | ||
labelposition | String | Define label position of form element (top/left) | |||
max | Float | 允许的最大值,如果没有设置则表示没有上限。 | |||
maxlength | Integer | HTML maxlength attribute | |||
min | Float | 允许的最小值,如果没有设置则表示没有下限。 | |||
mouseWheel | false | Boolean | 如果设为 true,则在鼠标悬停在微调小按钮上时就调整数值 | ||
name | String | The name to set for element | |||
numberFormat | String | 格式化数值的方式,依赖于 Globalize 插件(https://github.com/jquery/globalize)。最常用的值为: n - 表示 10 进制数值, C - 表示货币值 | |||
onChangeTopics | String | 当spinner微调器的值改变并且输入元素(input)失去焦点时,即触发 change 事件时,发布的消息主题,多值之间使用逗号分隔 | |||
onSpinTopics | String | 在递增/递减的时,即触发 spin 事件时,发布的消息主题,多值之间使用逗号分隔 | |||
onStartTopics | String | 微调开始之前,即触发 start 事件时,发布的消息主题,多值之间使用逗号分隔 | |||
onStopTopics | String | 微调结束后,即触发 stop 事件时,发布的消息主题,多值之间使用逗号分隔 | |||
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 | |||
page | 10 | Float | 使用 pageUp()/pageDown() 的方法或按 PageUp 和 PageDown 键进行分页时,增加或减少的数值。 | ||
readonly | false | Boolean | Whether the input is readonly | ||
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) | |||
size | Integer | HTML size attribute | |||
step | 1 | Float | 使用 stepUp()/stepDown()方法或按 UP 和 DOWN 键进行微调时,增加或减少的数值。 | ||
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 | |||
type | text | String | Specifies the html5 type element to display. e.g. text, email, url | ||
value | String | Preset the value of input element. |
example descript...
这里是示例代码块