TomSelectCallbacks

data class TomSelectCallbacks(val load: (query: String, callback: (JsArray<JsAny>) -> Unit) -> Unit? = null, val shouldLoad: (query: String) -> Boolean? = null, val score: (search: String) -> (JsAny) -> Int? = null, val onInitialize: () -> Unit? = null, val onFocus: () -> Unit? = null, val onBlur: () -> Unit? = null, val onChange: (value: JsAny) -> Unit? = null, val onItemAdd: (value: JsAny, item: JsAny) -> Unit? = null, val onItemRemove: (value: JsAny) -> Unit? = null, val onClear: () -> Unit? = null, val onDelete: (value: JsAny, event: JsAny) -> Unit? = null, val onOptionAdd: (value: JsAny, data: JsAny) -> Unit? = null, val onOptionRemove: (value: JsAny) -> Unit? = null, val onDropdownOpen: (dropdown: JsAny) -> Unit? = null, val onDropdownClose: (dropdown: JsAny) -> Unit? = null, val onType: (str: String) -> Unit? = null, val onLoad: (options: JsAny, optgroup: JsAny) -> Unit? = null)

Tom Select callback functions.

Constructors

Link copied to clipboard
constructor(load: (query: String, callback: (JsArray<JsAny>) -> Unit) -> Unit? = null, shouldLoad: (query: String) -> Boolean? = null, score: (search: String) -> (JsAny) -> Int? = null, onInitialize: () -> Unit? = null, onFocus: () -> Unit? = null, onBlur: () -> Unit? = null, onChange: (value: JsAny) -> Unit? = null, onItemAdd: (value: JsAny, item: JsAny) -> Unit? = null, onItemRemove: (value: JsAny) -> Unit? = null, onClear: () -> Unit? = null, onDelete: (value: JsAny, event: JsAny) -> Unit? = null, onOptionAdd: (value: JsAny, data: JsAny) -> Unit? = null, onOptionRemove: (value: JsAny) -> Unit? = null, onDropdownOpen: (dropdown: JsAny) -> Unit? = null, onDropdownClose: (dropdown: JsAny) -> Unit? = null, onType: (str: String) -> Unit? = null, onLoad: (options: JsAny, optgroup: JsAny) -> Unit? = null)

Properties

Link copied to clipboard
val load: (query: String, callback: (JsArray<JsAny>) -> Unit) -> Unit? = null
Link copied to clipboard
val onBlur: () -> Unit? = null
Link copied to clipboard
val onChange: (value: JsAny) -> Unit? = null
Link copied to clipboard
val onClear: () -> Unit? = null
Link copied to clipboard
val onDelete: (value: JsAny, event: JsAny) -> Unit? = null
Link copied to clipboard
val onDropdownClose: (dropdown: JsAny) -> Unit? = null
Link copied to clipboard
val onDropdownOpen: (dropdown: JsAny) -> Unit? = null
Link copied to clipboard
val onFocus: () -> Unit? = null
Link copied to clipboard
val onInitialize: () -> Unit? = null
Link copied to clipboard
val onItemAdd: (value: JsAny, item: JsAny) -> Unit? = null
Link copied to clipboard
val onItemRemove: (value: JsAny) -> Unit? = null
Link copied to clipboard
val onLoad: (options: JsAny, optgroup: JsAny) -> Unit? = null
Link copied to clipboard
val onOptionAdd: (value: JsAny, data: JsAny) -> Unit? = null
Link copied to clipboard
val onOptionRemove: (value: JsAny) -> Unit? = null
Link copied to clipboard
val onType: (str: String) -> Unit? = null
Link copied to clipboard
val score: (search: String) -> (JsAny) -> Int? = null
Link copied to clipboard
val shouldLoad: (query: String) -> Boolean? = null

Functions

Link copied to clipboard