Class: MultipleSelectUI

MultipleSelectUI

Members

clearAllUIBaseUI

"Clear" UI element.

itemsArray

List of available select options.

itemsBoxHandsontable

Handsontable instance used as items list element.

searchInputInputUI

Input element.

selectAllUIBaseUI

"Select all" UI element.

Methods

build()

Build DOM structure.

destroy()

Destroy instance.

getItems(){Array}

Get all available options.

Returns: {Array}

getValue(){Array}

Get element value.

Returns: {Array} Array of selected values.

isSelectedAllValues(){Boolean}

Check if all values listed in element are selected.

Returns: {Boolean}

registerHooks()

Register all necessary hooks.

reset()

Reset DOM structure.

setItems(items)

Set available options.

Parameters:
Name Type Description
items Array

Array of objects with checked and label property.

update()

Update DOM structure.