TextInput

class TextInput(id: String, label: TitleItem.DefaultTitleItem, hintText: String? = null, required: Boolean? = false, val textInputType: Input.TextInput.TextInputType? = TextInputType.Singleline, val placeholder: String? = null, val prefixText: String? = null, val maximumCharacterCount: Int? = null, val textContentType: Input.TextInput.TextContentType? = null, val keyboardType: Input.TextInput.TextKeyboardType? = null) : Input

Represents a text input on a form.

Parameters

textInputType

The TextInputType type of text expected for this input.

placeholder

Placeholder text displayed to users.

prefixText

Text which is prefixed to the final output.

maximumCharacterCount

The maximum characters this text input accepts.

textContentType

The TextContentType content type for this input.

keyboardType

The suggested TextKeyboardType keyboard type which should be used to collect input from the user.

Constructors

Link copied to clipboard
constructor(id: String, label: TitleItem.DefaultTitleItem, hintText: String? = null, required: Boolean? = false, textInputType: Input.TextInput.TextInputType? = TextInputType.Singleline, placeholder: String? = null, prefixText: String? = null, maximumCharacterCount: Int? = null, textContentType: Input.TextInput.TextContentType? = null, keyboardType: Input.TextInput.TextKeyboardType? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The current text value for this input.

Functions

Link copied to clipboard
open override fun asInputValue(): InputValue?

Converts the input to its corresponding InputValue type

Link copied to clipboard
open override fun validate(): Input.ValidationError?

Use this validation to determine if the current value for this input is valid.