API
Component

Accordion ($UI/system/components/bootstrap/accordion/accordion)

使用范围:UI2

Contents

component Accordion ($UI/system/components/bootstrap/accordion/accordion) extends ViewComponent

<b>使用场景</b>:手风琴效果折叠面板组件; <b>使用方法</b>:添加accordion组件,可以添加面板,分别设置面板的标题与内容; ## <b>文档链接</b>:#http://docs.newdao.net/zhuo-mian-bu-ju-zu-jian/shou-feng-qin.html#

Constructor Top

  Accordion ()
  Accordion ( options)

Attributes Top

string xid

Methods Top

void hide (Integer index)
void show (Integer index)

Operations Top

void hide (Integer index)
void show (Integer index)

Events Top

void onHide (HideEvent event)
void onShow ($UI/system/components/boostrap/accordion/accordion#ShowEvent event)

Constructor details Top

public Accordion ()

<b>使用场景</b>:手风琴效果折叠面板组件; <b>使用方法</b>:添加accordion组件,可以添加面板,分别设置面板的标题与内容; ## <b>文档链接</b>:#http://docs.newdao.net/zhuo-mian-bu-ju-zu-jian/shou-feng-qin.html#

public Accordion ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Attributes Detail Top

public string xid

Methods Detail Top

public void hide (Integer index)

隐藏特定的区域

Parameters

Integer index

区域索引

Return Value

void

public void show (Integer index)

显示特定的区域

Parameters

Integer index

区域索引

Return Value

void

Operations Detail Top

public void hide (Integer index)

隐藏特定的区域

See $UI/system/components/boostrap/accordion/accordion#hide

Parameters

Integer index

Return Value

void

public void show (Integer index)

显示特定的区域

See $UI/system/components/boostrap/accordion/accordion#show

Parameters

Integer index

Return Value

void

Events Detail Top

public void onHide (HideEvent event)

[回调型事件]当隐藏时候

Parameters

HideEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "index": 隐藏的区域索引 }

Return Value

void

public void onShow ($UI/system/components/boostrap/accordion/accordion#ShowEvent event)

[回调型事件]当显示时候

Parameters

$UI/system/components/boostrap/accordion/accordion#ShowEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "index": 显示的区域索引 }

Return Value

void