描述

创建一个可以折叠的面板(Accordion),详见 http://api.jqueryui.com/accordion/

参数

允许动态属性:

false
名称 必需 默认值 类型 描述
accesskey     String Set the html accesskey attribute on rendered html element
active   0 Integer 当前打开哪一个面板,0 表示第一个
animate     String 切换面板时要使用的 easing 动画形式 名称,可选值请参见 http://api.jqueryui.com/easings/
collapsible   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,则禁用该 Accordion(折叠面板)
errorPosition     String Define error position of form element (top|bottom)
event   click String Accordion(折叠面板) 头部会作出反应的事件,用以激活相关的面板。可以指定多个事件,用空格隔开,如 mouseover
header   h3 String 折叠面板的头部标签名(Tag Name)
heightStyle   auto String 控制 Accordion(折叠面板) 和每个面板的高度,可选值:'auto' - 所有的面板将会被设置为最高的面板的高度; 'fill' - 基于 accordion 的父元素的高度,扩展到可用的高度; 'content' - 每个面板的高度取决于它的内容
href     String 如果需要通过 Ajax 从远程服务器加载面板内容,则通过此属性设置 ajax 请求的 URL
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 从一个已有列表(集合)加载可折叠面板,该列表可以是 Array/Map/Collection 等 Iterator 对象
listKey     String 从一个列表中加载可折叠面板时的标题内容
listValue     String 从一个列表中加载可折叠面板时的面板内容
name     String The name to set for element
onActivateTopics     String 面板被激活后(在动画完成之后)发布的消息主题,多值之间使用逗号分隔
onBeforeActivateTopics     String 面板被激活前发布的消息主题,多值之间使用逗号分隔
onCreateTopics     String 当创建 accordion 时发布的消息主题,多值之间使用逗号分隔
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.
paramKeys     String 跟在 href 后面的参数名称,多值之间使用逗号分隔,如: queryParam1,queryParam2
paramValues     String 跟在 href 后面的参数值,多值之间使用逗号分隔,与 paramKeys 一一对应,如: queryValue1,queryValue2
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)
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.

示例代码

example descript...

这里是示例代码块