InputField

data class InputField(var initValue: String = "", var placeholder: String = "请输入", var label: String, var keyboardType: KeyboardType = KeyboardType.Text, var singleLine: Boolean = true, var maxLines: Int = 3, var minLines: Int = 1, var verify: (String) -> InputDialogBuilder.VerifyResult = { VerifyResult() })

单个输入项配置

Constructors

Link copied to clipboard
constructor(initValue: String = "", placeholder: String = "请输入", label: String, keyboardType: KeyboardType = KeyboardType.Text, singleLine: Boolean = true, maxLines: Int = 3, minLines: Int = 1, verify: (String) -> InputDialogBuilder.VerifyResult = { VerifyResult() })

Properties

Link copied to clipboard

初始值,默认空字符串

Link copied to clipboard

键盘类型,默认文本键盘

Link copied to clipboard

输入框上方标签文字

Link copied to clipboard

最大行数(singleLine 为 false 时生效),默认 3

Link copied to clipboard

最小行数,默认 1

Link copied to clipboard

占位提示文字,默认"请输入"

Link copied to clipboard

是否单行输入,默认 true

Link copied to clipboard

输入验证函数,入参为当前输入值,返回 VerifyResult,默认不验证