kvision / pl.treksoft.kvision.form.text

Package pl.treksoft.kvision.form.text

Text input components, with password, text area, rich text area and typeahead 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.

DataType

enum class DataType

Data type for the AJAX call.

HttpType

enum class HttpType

HTTP protocol type for the AJAX call.

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.

ShowHintOnFocus

enum class ShowHintOnFocus

TaAjaxOptions

data class TaAjaxOptions

Data class for Typeahead AJAX options.

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.

Typeahead

open class Typeahead : AbstractText

Form field typeahead component.

TypeaheadInput

open class TypeaheadInput : TextInput

The basic component for typeahead control.

TypeaheadRemote

open class TypeaheadRemote<T : Any> : AbstractText

Form field typeahead component connected to the multiplatform service.

TypeaheadRemoteInput

open class TypeaheadRemoteInput<T : Any> : TypeaheadInput

The Typeahead control connected to the multiplatform service.

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.

typeahead

fun Container.typeahead(options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (Typeahead.() -> Unit)? = null): Typeahead

DSL builder extension function.

typeaheadInput

fun Container.typeaheadInput(options: List<String>? = null, taAjaxOptions: TaAjaxOptions? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: (TypeaheadInput.() -> Unit)? = null): TypeaheadInput

DSL builder extension function.

typeaheadRemote

fun <T : Any> Container.typeaheadRemote(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: (() -> String)? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: (TypeaheadRemote<T>.() -> Unit)? = null): TypeaheadRemote<T>

DSL builder extension function.

typeaheadRemoteInput

fun <T : Any> Container.typeaheadRemoteInput(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: (() -> String)? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: TextInputType = TextInputType.TEXT, value: String? = null, classes: Set<String> = setOf(), init: (TypeaheadRemoteInput<T>.() -> Unit)? = null): TypeaheadRemoteInput<T>

DSL builder extension function.