InputEditText

class InputEditText(key: String? = null, func: InputEditText.() -> Unit) : Input

Input of the type EditText.

Constructors

Link copied to clipboard
fun InputEditText(key: String? = null, func: InputEditText.() -> Unit)

Functions

Link copied to clipboard
fun changeListener(listener: EditTextInputListener)

Set a listener which returns the new value when it changed.

Link copied to clipboard
fun columns(columns: Int)

Set the amount of columns this input will span.

Link copied to clipboard
fun content(@StringRes contentRes: Int)
fun content(content: String)

Set the content text.

Link copied to clipboard
fun defaultValue(defaultText: CharSequence)
fun defaultValue(@StringRes defaultTextRes: Int)

Set the default value.

Link copied to clipboard
fun drawable(@DrawableRes drawableRes: Int)

Set a drawable.

Link copied to clipboard
fun endIconActivated(isEndIconActivated: Boolean)

Activate the end icon.

Link copied to clipboard
fun endIconMode(endIconMode: Int)

Set the end icon mode.

Link copied to clipboard
fun errorIconDrawable(@DrawableRes drawableRes: Int)

Set a error drawable.

Link copied to clipboard
fun hint(@StringRes hintRes: Int)
fun hint(hint: String)

Set the hint text.

Link copied to clipboard
fun inputFilter(inputFilter: InputFilter)

Set the InputFilter.

Link copied to clipboard
fun inputType(inputType: Int)

Set the InputType.

Link copied to clipboard
open override fun invokeResultListener(): Unit?

Invoke the result listener which returns the input value.

Link copied to clipboard
fun label(@StringRes labelRes: Int)
fun label(label: String)

Set the label text.

Link copied to clipboard
fun maxLines(maxLines: Int)

Set the max lines.

Link copied to clipboard
fun passwordVisible(isPasswordVisible: Boolean)

Set the initial visibility of the password. This overrides the transformationMethod for the EditText.

Link copied to clipboard
open override fun putValue(bundle: Bundle, index: Int)

Save the input value into the bundle. Takes the index as an key, if there's no unique input key available.

Link copied to clipboard
fun required(required: Boolean = true)

Require a value before the user can click the positive button.

Link copied to clipboard
fun resultListener(listener: EditTextInputListener)

Set a listener which returns the final value when the user clicks the positive button.

Link copied to clipboard
fun startIconDrawable(@DrawableRes drawableRes: Int)

Set a start drawable.

Link copied to clipboard
fun suffix(suffix: String)

Set suffix of edittext.

Link copied to clipboard
fun suffixRes(suffixRes: Int)

Set suffix res of edittext.

Link copied to clipboard
open override fun valid(): Boolean

Check if the input value is valid.

Link copied to clipboard
fun validationListener(listener: EditTextInputValidationListener)

Set a listener that is invoked when the value needs to be validated.

Link copied to clipboard
fun visible(visible: Boolean = true)

Set the initial visibility of the input.

Properties

Link copied to clipboard
var value: CharSequence? = null