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 SelectRemote<T : Any>(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: () -> String?, value: String?, name: String?, multiple: Boolean, ajaxOptions: <ERROR CLASS>?, preload: Boolean, label: String?, rich: Boolean, init: SelectRemote<T>.() -> Unit?)

The form field component for SelectRemote control.

Link copied to clipboard
open class SelectRemoteInput<T : Any>(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: () -> String?, value: String?, multiple: Boolean, ajaxOptions: <ERROR CLASS>?, preload: Boolean, className: String?, init: SelectRemoteInput<T>.() -> Unit?)

The Select control connected to the fullstack service.

Functions

Link copied to clipboard
external fun decodeURIComponent(encodedURI: String): String
Link copied to clipboard
fun <T : Any> <ERROR CLASS>.selectRemote(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: () -> String? = null, value: String? = null, name: String? = null, multiple: Boolean = false, ajaxOptions: <ERROR CLASS>? = null, preload: Boolean = false, label: String? = null, rich: Boolean = false, init: SelectRemote<T>.() -> Unit? = null): SelectRemote<T>

DSL builder extension function.

Link copied to clipboard
fun <T : Any> <ERROR CLASS>.selectRemoteInput(serviceManager: <ERROR CLASS><T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: () -> String? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: <ERROR CLASS>? = null, preload: Boolean = false, className: String? = null, init: SelectRemoteInput<T>.() -> Unit? = null): SelectRemoteInput<T>

DSL builder extension function.