Select Remote Input
fun <T : Any> SelectRemoteInput(serviceManager: KVServiceMgr<T>, function: suspend T.(String?, String?, String?) -> List<RemoteOption>, stateFunction: () -> String? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, preload: Boolean = false, className: String? = null, init: SelectRemoteInput<T>.() -> Unit? = null)
Content copied to clipboard
Parameters
value
selected value
service Manager
multiplatform service manager
function
multiplatform service method returning the list of options
state Function
a function to generate the state object passed with the remote request
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
class Name
CSS class names
init
an initializer extension function