SimpleSelectRemote

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.

Parameters

value

selected value

serviceManager

fullstack service manager

function

fullstack service method returning the list of options

stateFunction

a function to generate the state object passed with the remote request

name

the name attribute of the generated HTML input element

emptyOption

determines if an empty option is automatically generated

multiple

allows multiple value selection (multiple values are comma delimited)

selectSize

the number of visible options

label

label text bound to the input element

rich

determines if label can contain HTML code

init

an initializer extension function

Constructors

Link copied to clipboard
fun <T : Any> 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)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun add(child: <ERROR CLASS>): SimpleSelectRemote<T>
open fun add(position: Int, child: <ERROR CLASS>): SimpleSelectRemote<T>
Link copied to clipboard
open fun addAll(children: List<<ERROR CLASS>>): SimpleSelectRemote<T>
Link copied to clipboard
open fun blur()
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <ERROR CLASS>)
Link copied to clipboard
open fun disposeAll(): SimpleSelectRemote<T>
Link copied to clipboard
open fun focus()
Link copied to clipboard
open fun getChildren(): List<<ERROR CLASS>>
Link copied to clipboard
open fun getState(): String?
Link copied to clipboard
open fun remove(child: <ERROR CLASS>): SimpleSelectRemote<T>
Link copied to clipboard
open fun removeAll(): SimpleSelectRemote<T>
Link copied to clipboard
open fun removeAt(position: Int): SimpleSelectRemote<T>
Link copied to clipboard
open fun removeEventListener(id: Int): <ERROR CLASS>
Link copied to clipboard
open fun removeEventListeners(): <ERROR CLASS>
Link copied to clipboard
open fun <T> setEventListener(block: <ERROR CLASS><T>.() -> Unit): Int
Link copied to clipboard
open fun setState(state: String?)
Link copied to clipboard
open fun subscribe(observer: (String?) -> Unit): () -> Unit

Properties

Link copied to clipboard
var autofocus: <ERROR CLASS>

Determines if the select is automatically focused.

Link copied to clipboard
var emptyOption: <ERROR CLASS>

Determines if an empty option is automatically generated.

Link copied to clipboard
val flabel: <ERROR CLASS>
Link copied to clipboard
val input: SimpleSelectRemoteInput<T>
Link copied to clipboard
val invalidFeedback: <ERROR CLASS>
Link copied to clipboard
var label: <ERROR CLASS>

The label text bound to the select element.

Link copied to clipboard
var multiple: <ERROR CLASS>

Determines if multiple value selection is allowed.

Link copied to clipboard
var placeholder: <ERROR CLASS>

The placeholder for the select control.

Link copied to clipboard
var rich: <ERROR CLASS>

Determines if label can contain HTML code.

Link copied to clipboard
var selectSize: <ERROR CLASS>

The number of visible options.

Link copied to clipboard
open var value: <ERROR CLASS>

A value of the selected option.