SelectRemote

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.

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

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

Types

Companion
Link copied to clipboard
object Companion

Functions

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

Hides dropdown with options.

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

Opens dropdown with options.

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

Toggles visibility of dropdown with options.

Properties

autofocus
Link copied to clipboard
var autofocus: <ERROR CLASS>

Determines if the select is automatically focused.

dropdownAlign
Link copied to clipboard
var dropdownAlign: <ERROR CLASS>

The dropdown align of the select control.

emptyOption
Link copied to clipboard
var emptyOption: <ERROR CLASS>

Determines if an empty option is automatically generated.

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

The label text bound to the select element.

maxOptions
Link copied to clipboard
var maxOptions: <ERROR CLASS>

Maximal number of selected options.

multiple
Link copied to clipboard
var multiple: <ERROR CLASS>

Determines if multiple value selection is allowed.

placeholder
Link copied to clipboard
var placeholder: <ERROR CLASS>

The placeholder for the select control.

rich
Link copied to clipboard
var rich: <ERROR CLASS>

Determines if label can contain HTML code.

selectWidth
Link copied to clipboard
var selectWidth: <ERROR CLASS>

The width of the select control.

selectWidthType
Link copied to clipboard
var selectWidthType: <ERROR CLASS>

The width type of the select control.

style
Link copied to clipboard
var style: <ERROR CLASS>

The style of the select control.

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

A value of the selected option.