OnsSelectInput(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, selectSize: Int? = null, selectId: String? = null, classes: Set<String> = setOf(), init: (OnsSelectInput.() -> Unit)? = null)
Creates a select input component.
options
- an optional list of options (value to label pairs) for the select control
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
selectId
- the ID of the select element
classes
- a set of CSS class names
init
- an initializer extension function
Constructor
Creates a select input component.