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: unknown class><T>,     function: suspend T.(String?, String?, String?) -> List<<Error class: unknown class>>,     stateFunction: () -> String? = null,     value: String? = null,     name: String? = null,     multiple: Boolean = false,     ajaxOptions: <Error class: unknown class>? = null,     preload: Boolean = false,     label: String? = null,     rich: Boolean = false,     init: SelectRemote<T>.() -> Unit? = null)

The form field component for SelectRemote control.

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

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: unknown class>.selectRemote(    serviceManager: <Error class: unknown class><T>,     function: suspend T.(String?, String?, String?) -> List<<Error class: unknown class>>,     stateFunction: () -> String? = null,     value: String? = null,     name: String? = null,     multiple: Boolean = false,     ajaxOptions: <Error class: unknown 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: unknown class>.selectRemoteInput(    serviceManager: <Error class: unknown class><T>,     function: suspend T.(String?, String?, String?) -> List<<Error class: unknown class>>,     stateFunction: () -> String? = null,     value: String? = null,     multiple: Boolean = false,     ajaxOptions: <Error class: unknown class>? = null,     preload: Boolean = false,     className: String? = null,     init: SelectRemoteInput<T>.() -> Unit? = null): SelectRemoteInput<T>

DSL builder extension function.