SelectRemote
constructor(serviceManager: KVServiceMgr<T>, function: suspend T.(String?) -> List<SimpleRemoteOption>, stateFunction: () -> String? = null, value: String? = null, name: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, requestFilter: suspend RequestInit.() -> Unit? = null, label: String? = null, rich: Boolean = false, init: SelectRemote<T>.() -> Unit? = null)(source)
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
requestFilter
a request filtering function
label
label text bound to the input element
rich
determines if label can contain HTML code
init
an initializer extension function