描述

创建一个带有自动提示功能的输入框,详见 http://api.jqueryui.com/autocomplete/

参数

允许动态属性:

false
名称 必需 默认值 类型 描述
accesskey     String Set the html accesskey attribute on rendered html element
autoFocus   false Boolean 如果设置为 true,当候选下拉菜单显示时,第一个条目将自动获得焦点
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
delay   300 Integer 按钮结束和执行搜索操作之间的时间延迟(单位为毫秒)
disabled     String Set the html disabled attribute on rendered html element
errorPosition     String Define error position of form element (top|bottom)
forceValidOption   false Boolean 如果为 true,则值必须为提示框中的的一个选项
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)
list     String Iterable source to populate from. If the list is a Map (key, value), the Map key will become the option 'value' parameter and the Map value will become the option body.
listCssClass     String Property of list objects to get css class from
listCssStyle     String Property of list objects to get css style from
listKey     String Property of list objects to get field value from
listLabel     String a seperate label element.
listTitle     String Property of list objects to get title from
listValue     String Property of list objects to get field content from
maxlength     Integer 文本框最大允许输入的字符数
minLength   1 Integer 执行搜索前用户必须输入的最小字符数
multiple   false Boolean Creates a multiple select. The tag will pre-select multiple values if the values are passed as an Array or a Collection(of appropriate types) via the value attribute. If one of the keys equals one of the values in the Collection or Array it wil be selected
name     String The name to set for element
onFocusTopics     String A comma delimited list of topics that published before focus is moved to an item
onSearchTopics     String A comma delimited list of topics that published before a request is started, after loadMinimumCount and delay are met.
onSelectTopics     String A comma delimited list of topics that published when item is selected
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
readonly   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)
selectBox   false Boolean 值为 true 时,使用下拉框的形式进行展现
selectBoxIcon   false Boolean 是否显示下拉框图标
size     Integer 文本框的 size 属性
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     String Preset the value of input element.
valueWidget     String The value of the Widget Input Field.

示例代码

example descript...

这里是示例代码块