API
Component

WindowRunner ($UI/system/components/justep/windowRunner/windowRunner)

使用范围:UI2

Contents

component WindowRunner ($UI/system/components/justep/windowRunner/windowRunner) extends BindComponent

windowRunner

Constructor Top

  WindowRunner ()
  WindowRunner ( options)

Properties Top

string activity

打开.w使用的activity,缺省使用当前环境的

string process

打开.w使用的process,缺省使用当前环境的

string src

.w的url,需要使用require.toUrl(...)处理

string title

标题

Attributes Top

string activity

打开.w使用的activity,缺省使用当前环境的

string process

打开.w使用的process,缺省使用当前环境的

string src

.w的url,需要使用require.toUrl(...)处理

string title

标题

string xid

组件标示

Methods Top

void close ()
void open (object option)

Events Top

void onClose (ViewEvent event)
void onOpen (OpenEvent event)
void onReceive (ReceiveEvent event)
void onSend (SendEvent event)

Constructor details Top

public WindowRunner ()

windowRunner

public WindowRunner ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Properties Detail Top

public string activity

打开.w使用的activity,缺省使用当前环境的

public string process

打开.w使用的process,缺省使用当前环境的

public string src

.w的url,需要使用require.toUrl(...)处理

public string title

标题

Attributes Detail Top

public string activity

打开.w使用的activity,缺省使用当前环境的

public string process

打开.w使用的process,缺省使用当前环境的

public string src

.w的url,需要使用require.toUrl(...)处理

public string title

标题

public string xid

组件标示

Methods Detail Top

public void close ()

关闭

Return Value

void

public void open (object option)

打开

Parameters

object option


结构如下:

{ "src" :.w的url "data" : 传入.w的数据部分 }

Return Value

void

Events Detail Top

public void onClose (ViewEvent event)

[回调型事件]关闭事件

Parameters

ViewEvent event


结构如下:

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

Return Value

void

public void onOpen (OpenEvent event)

[回调型事件]打开事件

Parameters

OpenEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "innerModel" : 打开功能的model }

Return Value

void

public void onReceive (ReceiveEvent event)

[回调型事件].w返回数据事件

Parameters

ReceiveEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : 返回的数据 }

Return Value

void

public void onSend (SendEvent event)

[回调型事件]向.w传递数据事件

Parameters

SendEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : 传递的数据 }

Return Value

void