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

SimpleSelectRemote
Link copied to clipboard
open class SimpleSelectRemote<T : Any>(serviceManager: KVServiceMgr<T>, function: suspend T.(String?) -> List<SimpleRemoteOption>, stateFunction: () -> String?, value: String?, name: String?, emptyOption: Boolean, multiple: Boolean, selectSize: Int?, label: String?, rich: Boolean, init: SimpleSelectRemote<T>.() -> Unit?) : SimplePanel, StringFormControl, MutableState<String?>

The form field component for SelectRemote control.

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

The SimpleSelect control connected to the fullstack service.

Functions

simpleSelectRemote
Link copied to clipboard
fun <T : Any> Container.simpleSelectRemote(serviceManager: KVServiceMgr<T>, function: suspend T.(String?) -> List<SimpleRemoteOption>, 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.

simpleSelectRemoteInput
Link copied to clipboard
fun <T : Any> Container.simpleSelectRemoteInput(serviceManager: KVServiceMgr<T>, function: suspend T.(String?) -> List<SimpleRemoteOption>, 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.