TomSelectJs

class TomSelectJs(element: HTMLElement, options: TomSelectOptionsJs) : JsAny

Native Tom Select class.

Constructors

Link copied to clipboard
constructor(element: HTMLElement, options: TomSelectOptionsJs)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun addItem(value: String, silent: Boolean)
Link copied to clipboard
fun addOption(value: JsAny, userCreated: Boolean)
Link copied to clipboard
fun addOptionGroup(id: String, data: JsAny)
Link copied to clipboard
fun addOptions(value: JsArray<JsAny>, userCreated: Boolean)
Link copied to clipboard
fun blur()
Link copied to clipboard
fun clear(silent: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun clearOptions(clearFilter: (JsAny) -> Boolean)
Link copied to clipboard
fun close()
Link copied to clipboard
fun createItem(value: String, callback: (JsAny) -> Unit)
Link copied to clipboard
fun destroy()
Link copied to clipboard
fun disable()
Link copied to clipboard
fun enable()
Link copied to clipboard
fun focus()
Link copied to clipboard
fun getItem(value: String)
Link copied to clipboard
fun getOption(value: String, create: Boolean): JsAny?
Link copied to clipboard
fun getValue(): JsAny?
Link copied to clipboard
Link copied to clipboard
fun load(query: String)
Link copied to clipboard
fun lock()
Link copied to clipboard
fun off(event: String)
fun off(event: String, handler: JsAny)
Link copied to clipboard
fun on(event: String, handler: () -> Unit)
fun on(event: String, handler: (JsAny) -> Unit)
fun on(event: String, handler: JsAny)
Link copied to clipboard
fun open()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun refreshOptions(triggerDropdown: Boolean)
Link copied to clipboard
fun removeItem(value: String, silent: Boolean)
Link copied to clipboard
fun removeOption(value: String)
Link copied to clipboard
Link copied to clipboard
fun setCaret(index: Int)
Link copied to clipboard
Link copied to clipboard
fun setValue(value: JsAny?, silent: Boolean)
Link copied to clipboard
fun sync()
Link copied to clipboard
fun trigger(event: String)
Link copied to clipboard
fun unlock()
Link copied to clipboard
fun updateOption(value: String, data: JsAny)