API
Component

MessageDialog ($UI/wxsys/comps/messageDialog/messageDialog)

使用范围:WX

Contents

component MessageDialog ($UI/wxsys/comps/messageDialog/messageDialog) extends Component

<b>使用场景</b>:显示具有确定取消按钮或者确定按钮的弹出框,用于询问用户或者提示用户 <b>使用方法</b>:设置“标题”、“提示信息”、“类型”属性 ## <b>文档链接</b>:#http://docs.newdao.net/xiao-xi-dui-hua-kuang.html#

Constructor Top

  MessageDialog ()
  MessageDialog ( config)

Properties Top

string cancelText

取消按钮文字

string confirmText

确定按钮文字

string content

提示信息,支持html格式

string title

标题

string type

类型,取值范围:OK,OKCancel

Attributes Top

string cancelText

取消按钮文字

string confirmText

确定按钮文字

string content

提示信息,支持html格式

string id

组件标示

string title

标题

string type

类型,取值范围:OK,OKCancel

Methods Top

Success show (JSON arg)

Operations Top

show (JSON arg)

Constructor details Top

public MessageDialog ()

<b>使用场景</b>:显示具有确定取消按钮或者确定按钮的弹出框,用于询问用户或者提示用户 <b>使用方法</b>:设置“标题”、“提示信息”、“类型”属性 ## <b>文档链接</b>:#http://docs.newdao.net/xiao-xi-dui-hua-kuang.html#

public MessageDialog ( config)

构造函数

Inherited from Operational

Parameters

config

操作配置

Properties Detail Top

public string cancelText

取消按钮文字

public string confirmText

确定按钮文字

public string content

提示信息,支持html格式

public string title

标题

public string type

类型,取值范围:OK,OKCancel

Attributes Detail Top

public string cancelText

取消按钮文字

public string confirmText

确定按钮文字

public string content

提示信息,支持html格式

public string id

组件标示

public string title

标题

public string type

类型,取值范围:OK,OKCancel

Methods Detail Top

public Success show (JSON arg)

显示出消息对话框

Parameters

JSON arg

参数
结构如下:

{ type: {string} 类型,取值范围:OK,OKCancel title: {string} 标题 content: {string} 提示信息 cancelText:{string} 取消按钮文字 confirmText:{string} 确定按钮文字 callback: {function} 关闭后的回调,可参考onClose事件,回调执行this为组件,参数param包含button: 触发关闭的按钮type,取值范围:'ok'、'cancel' }

Return Value

Success

Operations Detail Top

public show (JSON arg)

显示出消息对话框

Parameters

JSON arg

参数
结构如下:

{ type: {string} 类型,取值范围:OK,OKCancel title: {string} 标题 content: {string} 提示信息 cancelText:{string} 取消按钮文字 confirmText:{string} 确定按钮文字 callback: {function} 关闭后的回调,可参考onClose事件,回调执行this为组件,参数param包含button: 触发关闭的按钮type,取值范围:'ok'、'cancel' }