selectRef

@Composable
fun IComponent.selectRef(options: List<StringPair>? = null, value: String? = null, emptyOption: Boolean = false, multiple: Boolean = false, size: Int? = null, name: String? = null, placeholder: String? = null, disabled: Boolean? = null, required: Boolean? = null, className: String? = null, id: String? = null, setup: @Composable ISelect.() -> Unit = {}): Select(source)

Creates Select component, returning a reference.

Return

a Select component

Parameters

options

a list of options (value to label pairs)

value

initial value

multiple

determines if multiple value selection is allowed

size

the number of visible options

name

the name of the select

placeholder

the placeholder for the select component

disabled

whether the select is disabled

required

whether the select is required

className

the CSS class name

id

the ID of the select component

setup

a function for setting up the component