Package io.kvision.form.select

Contains a simple select component as well as a full-featured component with support for remote (AJAX) data source.

Types

Link copied to clipboard
open class SimpleSelectRemote<T : Any>(    serviceManager: <ERROR CLASS><T>,     function: suspend T.(String?) -> List<<ERROR CLASS>>,     stateFunction: () -> String? = null,     value: String? = null,     name: String? = null,     emptyOption: Boolean = false,     multiple: Boolean = false,     selectSize: Int? = null,     label: String? = null,     rich: Boolean = false,     init: SimpleSelectRemote<T>.() -> Unit? = null)

The form field component for SelectRemote control.

Link copied to clipboard
open class SimpleSelectRemoteInput<T : Any>(    serviceManager: <ERROR CLASS><T>,     function: suspend T.(String?) -> List<<ERROR CLASS>>,     stateFunction: () -> String? = null,     value: String? = null,     emptyOption: Boolean = false,     multiple: Boolean = false,     selectSize: Int? = null,     className: String? = null,     init: SimpleSelectRemoteInput<T>.() -> Unit? = null)

The SimpleSelect control connected to the fullstack service.

Functions

Link copied to clipboard
fun <T : Any> <ERROR CLASS>.simpleSelectRemote(    serviceManager: <ERROR CLASS><T>,     function: suspend T.(String?) -> List<<ERROR CLASS>>,     stateFunction: () -> String? = null,     value: String? = null,     name: String? = null,     emptyOption: Boolean = false,     multiple: Boolean = false,     selectSize: Int? = null,     label: String? = null,     rich: Boolean = false,     init: SimpleSelectRemote<T>.() -> Unit? = null): SimpleSelectRemote<T>

DSL builder extension function.

Link copied to clipboard
fun <T : Any> <ERROR CLASS>.simpleSelectRemoteInput(    serviceManager: <ERROR CLASS><T>,     function: suspend T.(String?) -> List<<ERROR CLASS>>,     stateFunction: () -> String? = null,     value: String? = null,     emptyOption: Boolean = false,     multiple: Boolean = false,     selectSize: Int? = null,     className: String? = null,     init: SimpleSelectRemoteInput<T>.() -> Unit? = null): SimpleSelectRemoteInput<T>

DSL builder extension function.