界面相关API
Methods
-
inner closeWebView(dialogId, funcRet)
-
关闭对话框
Parameters:
Name Type Description dialogIdstring createWebView传入的dialogId
funcRetcloseWebViewCallback -
inner createWebView(param, funcRet)
-
创建窗口
Parameters:
Name Type Description paramJSON 格式如下
{
dialogId: string, //对话框Id
url: string, //页面url
titleName: string, //对话框标题
width: number, //对话框宽度
height: number, //对话框高度
posLeft: number, //对话框左上位置.x
posTop: number, //对话框左上位置.y
bModalDialog: boolean, //模态(true)/非模态(false)对话框
bShow: boolean, //显示(true)/隐藏(false)对话框
}funcRetcreateWebViewCallback -
inner showWebView(dialogId, bShow, funcRet)
-
显示/隐藏对话框
Parameters:
Name Type Description dialogIdstring createWebView中的dialogId
bShowboolean 显示(true)/隐藏(false)页面
funcRetshowWebViewCallback
Type Definitions
-
closeWebViewCallback(dialogId, returnValue)
-
closeWebView回调函数
Parameters:
Name Type Description dialogIdstring 对话框id
returnValueboolean 操作结果
-
createWebViewCallback(dialogId, returnValue)
-
createWebView回调函数
Parameters:
Name Type Description dialogIdstring 对话框id
returnValueboolean 操作结果
-
showWebViewCallback(dialogId, returnValue)
-
showWebView回调函数
Parameters:
Name Type Description dialogIdstring 对话框id
returnValueboolean 操作结果