# Interface: ShowKeyboardParams ‹Err

ShowKeyboardParamsErr›()

# Type parameters:

Err: MogsRes

# Type parameters

Err: MogsRes

# Properties

# confirmHold

confirmHold: boolean

当点击完成时键盘是否收起

Returns: boolean


# confirmType

confirmType: ConfirmType

键盘右下角 confirm 按钮的类型,只影响按钮的文本内容

Returns: ConfirmType


# defaultValue

defaultValue: string

键盘输入框显示的默认值

Returns: string


# maxLength

maxLength: number

键盘中文本的最大长度

Returns: number


# multiple

multiple: boolean

是否为多行输入

Returns: boolean

# Methods

# Optional complete

complete(res: ShowKeyboardRes | Err): void

Inherited from MogsParams.complete

接口调用结束的回调函数(调用成功、失败都会执行)

# 参数:

属性 类型
res ShowKeyboardRes | Err

# 返回值:

void


# Optional fail

fail(err: Err): void

Inherited from MogsParams.fail

接口调用失败的回调函数

# 参数:

属性 类型
err Err

# 返回值:

void


# Optional success

success(res: ShowKeyboardRes): void

Inherited from MogsParams.success

接口调用成功的回调函数

# 参数:

属性 类型
res ShowKeyboardRes

ShowKeyboardRes

属性 类型 描述
errMsg string API 调用成功/失败的消息

# 返回值:

void