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
Functions
Link copied to clipboard
Convert TomSelectCallbacks to native JS object TomSelectCallbacksJs