Skip to content

showConfirm

描述

显示确认框。

网页应用需要完成鉴权后调用该接口。
点击事件通过onSuccess回调通知。

支持说明

客户端平台WPS协作版本要求
iOS>=2.15.0
Android>=2.15.0
PC>=2.15.0

输入

名称数据类型是否必填描述
paramsobject
∟ cancelTextstring取消按钮文本,最多 8 个字符。
默认值:取消
∟ confirmTextstring确定按钮文本,最多 8 个字符。
默认值:确定
∟ contentstringconfirm 内容
∟ titlestringconfirm 标题
onSuccessFunction
onErrorFunction

输出

名称类型描述
eventstring事件名,可能值为:
confirm:确定
cancel:取消

示例代码

ts
const params = {
  title: '确认框标题',
  content: '确认框内容',
  confirmText: '确定',
  cancelText: '取消'
};
window.ksoxz_sdk.showConfirm({params, onSuccess, onError});

错误码

参考:公共错误码