API
Component

Content ($UI/system/components/justep/contents/content)

使用范围:UI2

Contents

component Content ($UI/system/components/justep/contents/content) extends ViewComponent

contents组件使用的content类, 在Contents内部使用, 不能独立使用

	
	

Constructor Top

  Content ()
  Content ( options)

Methods Top

void active ()
void dispose ()
isActive ()

Events Top

void onActive (ContentActiveEvent event)
void onInactive (ContentInactiveEvent event)

Constructor details Top

public Content ()

contents组件使用的content类, 在Contents内部使用, 不能独立使用

	
	

public Content ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Methods Detail Top

public void active ()

激活content

Return Value

void

public void dispose ()

销毁content对象

Return Value

void

public isActive ()

content是否激活

Return Value

boolean

Events Detail Top

public void onActive (ContentActiveEvent event)

[回调型事件]当content被激活

Parameters

ContentActiveEvent event


结构如下:

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

Return Value

void

public void onInactive (ContentInactiveEvent event)

[回调型事件]当content被取消激活

Parameters

ContentInactiveEvent event


结构如下:

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

Return Value

void