Simple Select Remote
open class SimpleSelectRemote<T : Any>( serviceManager: <Error class: unknown class><T>, function: suspend T.(String?) -> List<<Error class: unknown 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)
Content copied to clipboard
The form field component for SelectRemote control.
Parameters
value
selected value
service Manager
fullstack service manager
function
fullstack service method returning the list of options
state Function
a function to generate the state object passed with the remote request
name
the name attribute of the generated HTML input element
empty Option
determines if an empty option is automatically generated
multiple
allows multiple value selection (multiple values are comma delimited)
select Size
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: unknown class><T>, function: suspend T.(String?) -> List<<Error class: unknown 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)
Content copied to clipboard
Types
Functions
Link copied to clipboard
open fun add(position: Int, child: <Error class: unknown class>): SimpleSelectRemote<T>
Content copied to clipboard
Link copied to clipboard
open fun addAll(children: List<<Error class: unknown class>>): SimpleSelectRemote<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun remove(child: <Error class: unknown class>): SimpleSelectRemote<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T> setEventListener(block: <Error class: unknown class><T>.() -> Unit): Int
Content copied to clipboard