tomTypeaheadRef

@Composable
fun IComponent.tomTypeaheadRef(options: List<String>? = null, value: String? = null, type: InputType = InputType.Text, tsCallbacks: TomSelectCallbacks? = null, name: String? = null, placeholder: String? = null, disabled: Boolean? = null, required: Boolean? = null, className: String? = null, id: String? = null, setup: @Composable ITomTypeahead.() -> Unit = {}): TomTypeahead

Creates TomTypeahead component, returning a reference.

Return

a TomTypeahead component

Parameters

options

a list of options

value

initial value

type

the type of the input

tsCallbacks

Tom Select callbacks

name

the name of the select

placeholder

the placeholder for the input 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