kvision / pl.treksoft.kvision.form.text

Package pl.treksoft.kvision.form.text

Text input components, with password, text area and rich text area support.

Types

AbstractText

abstract class AbstractText : SimplePanel, StringFormControl

Base class for form field text components.

AbstractTextInput

abstract class AbstractTextInput : Widget, FormInput

Base class for basic text components.

Password

open class Password : Text

Form field password component.

RichText

open class RichText : AbstractText

Form field rich text component.

RichTextInput

open class RichTextInput : AbstractTextInput

Basic rich text component.

Text

open class Text : AbstractText

Form field text component.

TextArea

open class TextArea : AbstractText

Form field textarea component.

TextAreaInput

open class TextAreaInput : AbstractTextInput

Basic textarea component.

TextInput

open class TextInput : AbstractTextInput

Basic text component.

TextInputType

enum class TextInputType

Text input types.

Functions

password

fun Container.password(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Password.() -> Unit)? = null): Password

DSL builder extension function.

richText

fun Container.richText(value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (RichText.() -> Unit)? = null): RichText

DSL builder extension function.

richTextInput

fun Container.richTextInput(value: String? = null, classes: Set<String> = setOf(), init: (RichTextInput.() -> Unit)? = null): RichTextInput

DSL builder extension function.

text

fun Container.text(type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Text.() -> Unit)? = null): Text

DSL builder extension function.

textArea

fun Container.textArea(cols: Int? = null, rows: Int? = null, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (TextArea.() -> Unit)? = null): TextArea

DSL builder extension function.

textAreaInput

fun Container.textAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf(), init: (TextAreaInput.() -> Unit)? = null): TextAreaInput

DSL builder extension function.

textInput

fun Container.textInput(type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: (TextInput.() -> Unit)? = null): TextInput

DSL builder extension function.