TextInputCreatorImpl

data class TextInputCreatorImpl(val customId: String, val style: TextInput.TextInputStyle, val label: String, val json: ObjectNode = JsonNodeFactory.instance.objectNode()) : TextInputCreator, ComponentImpl.ComponentCreator(source)

Constructors

Link copied to clipboard
constructor(customId: String, style: TextInput.TextInputStyle, label: String, json: ObjectNode = JsonNodeFactory.instance.objectNode())

Functions

Link copied to clipboard

Creates the text input.

Link copied to clipboard
open override fun setInitialValue(value: String): TextInputCreator

Sets the pre-filled value for this component; max 4000 characters

Link copied to clipboard
open override fun setMaxLength(max: Int): TextInputCreator

Sets the maximum length of the text input. max 4000

Link copied to clipboard
open override fun setMinLength(min: Int): TextInputCreator

Sets the minimum length of the text input.

Link copied to clipboard
open override fun setPlaceholder(placeholder: String): TextInputCreator

Sets the placeholder for this component; max 4000 characters

Link copied to clipboard
open override fun setRequired(required: Boolean): TextInputCreator

Sets weather the text input is required.

Properties

Link copied to clipboard
Link copied to clipboard
open override val json: ObjectNode
Link copied to clipboard
Link copied to clipboard