API
Component

WindowOpener ($UI/system/components/justep/windowOpener/windowOpener)

使用范围:UI2

Contents

component WindowOpener ($UI/system/components/justep/windowOpener/windowOpener) extends BindComponent

WindowOpener

Constructor Top

  WindowOpener ()
  WindowOpener ( options)

Properties Top

string activity

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

string height

string left

显示位置,左

boolean modal

模态

string parameters

open时传递的参数

string process

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

boolean resizable

是否允许修改大小

string src

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

string status

显示状态,取值范围:normal,maximize

string top

显示位置,上

string width

Attributes Top

string activity

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

string height

string left

显示位置,左

boolean modal

模态

string parameters

open时传递的参数

string process

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

boolean resizable

是否允许修改大小

string src

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

string status

显示状态,取值范围:normal,maximize

string top

显示位置,上

string width

Methods Top

Object get (String name)
void open (object option)
void set (json arg)

Operations Top

void close ()
void open (object option)

Events Top

void onOpen (OpenEvent event)

Constructor details Top

public WindowOpener ()

WindowOpener

public WindowOpener ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Properties Detail Top

public string activity

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

public string height

public string left

显示位置,左

模态

public string parameters

open时传递的参数

public string process

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

public boolean resizable

是否允许修改大小

public string src

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

public string status

显示状态,取值范围:normal,maximize

public string top

显示位置,上

public string width

Attributes Detail Top

public string activity

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

public string height

public string left

显示位置,左

模态

public string parameters

open时传递的参数

public string process

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

public boolean resizable

是否允许修改大小

public string src

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

public string status

显示状态,取值范围:normal,maximize

public string top

显示位置,上

public string width

Methods Detail Top

public Object get (String name)

获取属性值

Parameters

String name

属性名称,取值范围:"url"、"process"、"activity"、"status"、"resizable"、 "width"、"height"、"top"、"left"、"parameters"

Return Value

Object

public void open (object option)

打开对话框

Parameters

object option


结构如下:

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

Return Value

void

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "status": {string} 对话框显示状态,取值范围:normal,maximize "resizable" : {boolean} 是否允许改变大小 "width": {string} 对话框宽,支持css中所有的长度单位,如:200px、80%,缺省:80% "height": {string} 对话框高,支持css中所有的长度单位,如:200px、80%,缺省:80% "top": {string} 对话框上偏移,支持css中所有的长度单位,如:200px、10%,缺省:居中 "left": {string} 对话框左偏移,支持css中所有的长度单位,如:200px、10%,缺省:居中 "url" : {string} .w的url,需要使用require.toUrl(...)处理 "process" : {string} 打开.w使用的process,缺省使用当前环境的 "activity: {string} 打开.w使用的activity,缺省使用当前环境的 "parameters": {string} open时传递的参数 }

Return Value

void

Operations Detail Top

public void close ()

关闭window对话框

Return Value

void

public void open (object option)

打开window对话框

See Open

Parameters

object option


结构如下:

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

Return Value

void

Events Detail Top

public void onOpen (OpenEvent event)

[回调型事件]打开事件

Parameters

OpenEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "window" : 打开的window,目前在微信下没有此属性 }

Return Value

void