viewApi

界面相关API

Methods

inner closeWebView(dialogId, funcRet)

关闭对话框

Parameters:
Name Type Description
dialogId string

createWebView传入的dialogId

funcRet closeWebViewCallback

inner createWebView(param, funcRet)

创建窗口

Parameters:
Name Type Description
param JSON

格式如下
{
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)对话框
}

funcRet createWebViewCallback

inner showWebView(dialogId, bShow, funcRet)

显示/隐藏对话框

Parameters:
Name Type Description
dialogId string

createWebView中的dialogId

bShow boolean

显示(true)/隐藏(false)页面

funcRet showWebViewCallback

Type Definitions

closeWebViewCallback(dialogId, returnValue)

closeWebView回调函数

Parameters:
Name Type Description
dialogId string

对话框id

returnValue boolean

操作结果

createWebViewCallback(dialogId, returnValue)

createWebView回调函数

Parameters:
Name Type Description
dialogId string

对话框id

returnValue boolean

操作结果

showWebViewCallback(dialogId, returnValue)

showWebView回调函数

Parameters:
Name Type Description
dialogId string

对话框id

returnValue boolean

操作结果