使用范围:UI2
Contents
component WindowDialog ($UI/system/components/justep/windowDialog/windowDialog) extends Dialog
Constructor Top
WindowDialog () | |||
WindowDialog ( options) |
Properties Top
string |
activity
打开.w使用的activity,缺省使用当前环境的 | ||
boolean |
forceRefreshOnOpen
打开.w时强制刷新 | ||
string |
process
打开.w使用的process,缺省使用当前环境的 | ||
string |
src
.w的url,需要使用require.toUrl(...)处理 |
Attributes Top
string |
activity
打开.w使用的activity,缺省使用当前环境的 | ||
boolean |
forceRefreshOnOpen
打开.w时强制刷新 | ||
string |
process
打开.w使用的process,缺省使用当前环境的 | ||
boolean |
routable
是否开启路由 | ||
string |
src
.w的url,需要使用require.toUrl(...)处理 |
Methods Top
Object | get (String name) | |
ModelBase | getInnerModel () | |
void | open (JSON option) | |
void | set (json arg) |
Operations Top
void | close () | |
void | open (object option) |
Events Top
void | onLoad (ViewEvent event) | |
void | onOpen (ViewEvent event) | |
void | onReceive (ReceiveEvent event) | |
void | onReceived (ReceiveEvent event) | |
void | onSend (SendEvent event) |
Constructor details
Top
public
WindowDialog
()
使用场景:弹出和父页面有数据关联的对话框;
使用方法:添加windowDialog组件,在父页面打开对话框时可以传参,关闭对话框时可以把操作完的数据再传回父页面;
public
WindowDialog
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
WindowDialog
()
public
WindowDialog
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
string
activity
打开.w使用的activity,缺省使用当前环境的
public
boolean
forceRefreshOnOpen
打开.w时强制刷新
public
string
process
打开.w使用的process,缺省使用当前环境的
public
string
src
.w的url,需要使用require.toUrl(...)处理
Attributes Detail Top
public
string
activity
打开.w使用的activity,缺省使用当前环境的
public
boolean
forceRefreshOnOpen
打开.w时强制刷新
public
string
process
打开.w使用的process,缺省使用当前环境的
public
boolean
routable
是否开启路由
public
string
src
.w的url,需要使用require.toUrl(...)处理
Methods Detail Top
public
Object
get
(String name)
获取属性值
获取对话框内部的Model,一般用于onReceived事件时获取内部的model,注意:当对话框没有打开过时不能调用
public
void
open
(JSON option)
打开对话框
public
void
set
(json arg)
设置属性值
Operations Detail Top
public
void
close
()
关闭window对话框
public
void
open
(object option)
打开window对话框
See Open
Events Detail Top
[回调型事件].w加载完成后
[回调型事件]打开事件
[回调型事件].w返回数据事件
[回调型事件].w返回数据接收处理完成事件
[回调型事件]向.w传递数据事件