Package io.kvision.form.text

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

Types

Link copied to clipboard
open class TypeaheadRemote<T : Any>(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: () -> String?, items: Int?, minLength: Int, delay: Int, type: <ERROR CLASS>, value: String?, name: String?, label: String?, rich: Boolean, floating: Boolean, init: TypeaheadRemote<T>.() -> Unit?)

Form field typeahead component connected to the fullstack service.

Link copied to clipboard
open class TypeaheadRemoteInput<T : Any>(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: () -> String?, items: Int?, minLength: Int, delay: Int, type: <ERROR CLASS>, value: String?, taAjaxOptions: <ERROR CLASS>?, className: String?, init: TypeaheadRemoteInput<T>.() -> Unit?)

The Typeahead control connected to the fullstack service.

Functions

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

DSL builder extension function.

Link copied to clipboard
fun <T : Any> <ERROR CLASS>.typeaheadRemoteInput(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?) -> List<String>, stateFunction: () -> String? = null, items: Int? = 8, minLength: Int = 1, delay: Int = 0, type: <ERROR CLASS> = TextInputType.TEXT, value: String? = null, taAjaxOptions: <ERROR CLASS>? = null, className: String? = null, init: TypeaheadRemoteInput<T>.() -> Unit? = null): TypeaheadRemoteInput<T>

DSL builder extension function.