Select Remote
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?)
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
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
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)
Content copied to clipboard
Types
Functions
add
Link copied to clipboard
add All
Link copied to clipboard
build Class Set
Link copied to clipboard
dispose All
Link copied to clipboard
get Children
Link copied to clipboard
hide Options
Link copied to clipboard
Hides dropdown with options.
remove
Link copied to clipboard
remove All
Link copied to clipboard
remove At
Link copied to clipboard
remove Event Listener
Link copied to clipboard
remove Event Listeners
Link copied to clipboard
set Event Listener
Link copied to clipboard
show Options
Link copied to clipboard
Opens dropdown with options.
toggle Options
Link copied to clipboard
Toggles visibility of dropdown with options.
Properties
dropdownAlign
Link copied to clipboard
emptyOption
Link copied to clipboard
input
Link copied to clipboard
invalidFeedback
Link copied to clipboard
maxOptions
Link copied to clipboard
placeholder
Link copied to clipboard
selectWidth
Link copied to clipboard
selectWidthType
Link copied to clipboard