SelectRemote

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.

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

multiple

allows multiple value selection (multiple values are comma delimited)

ajaxOptions

additional options for remote data source

preload

preload all options from remote data source

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> 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)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun add(child: <Error class: unknown class>): SelectRemote<T>
open fun add(position: Int, child: <Error class: unknown class>): SelectRemote<T>
Link copied to clipboard
open fun addAll(children: List<<Error class: unknown class>>): SelectRemote<T>
Link copied to clipboard
open fun blur()
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun disposeAll(): SelectRemote<T>
Link copied to clipboard
open fun focus()
Link copied to clipboard
open fun getChildren(): List<<Error class: unknown class>>
Link copied to clipboard
open fun getState(): String?
Link copied to clipboard
open fun hideOptions()

Hides dropdown with options.

Link copied to clipboard
open fun remove(child: <Error class: unknown class>): SelectRemote<T>
Link copied to clipboard
open fun removeAll(): SelectRemote<T>
Link copied to clipboard
open fun removeAt(position: Int): SelectRemote<T>
Link copied to clipboard
open fun removeEventListener(id: Int): <Error class: unknown class>
Link copied to clipboard
open fun removeEventListeners(): <Error class: unknown class>
Link copied to clipboard
open fun <T> setEventListener(block: <Error class: unknown class><T>.() -> Unit): Int
Link copied to clipboard
open fun setState(state: String?)
Link copied to clipboard
open fun showOptions()

Opens dropdown with options.

Link copied to clipboard
open fun subscribe(observer: (String?) -> Unit): () -> Unit
Link copied to clipboard
open fun toggleOptions()

Toggles visibility of dropdown with options.

Properties

Link copied to clipboard
var autofocus: <Error class: unknown class>

Determines if the select is automatically focused.

Link copied to clipboard
var dropdownAlign: <Error class: unknown class>

The dropdown align of the select control.

Link copied to clipboard
var dropdownShowAll: <Error class: unknown class>

Always show all options in the dropdown list.

Link copied to clipboard
var dropdownSize: <Error class: unknown class>

The number of options to be show in the dropdown list.

Link copied to clipboard
var emptyOption: <Error class: unknown class>

Determines if an empty option is automatically generated.

Link copied to clipboard
val flabel: <Error class: unknown class>
Link copied to clipboard
val input: SelectRemoteInput<T>
Link copied to clipboard
val invalidFeedback: <Error class: unknown class>
Link copied to clipboard
var label: <Error class: unknown class>

The label text bound to the select element.

Link copied to clipboard
var maxOptions: <Error class: unknown class>

Maximal number of selected options.

Link copied to clipboard
var multiple: <Error class: unknown class>

Determines if multiple value selection is allowed.

Link copied to clipboard
var placeholder: <Error class: unknown class>

The placeholder for the select control.

Link copied to clipboard
var rich: <Error class: unknown class>

Determines if label can contain HTML code.

Link copied to clipboard
var selectWidth: <Error class: unknown class>

The width of the select control.

Link copied to clipboard
var selectWidthType: <Error class: unknown class>

The width type of the select control.

Link copied to clipboard
var style: <Error class: unknown class>

The style of the select control.

Link copied to clipboard
open var value: <Error class: unknown class>

A value of the selected option.