Select Remote
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)
Content copied to clipboard
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
multiple
allows multiple value selection (multiple values are comma delimited)
ajax Options
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