Class: SelectorsToolbar

selectors~SelectorsToolbar(selectors)

Class representing a toolbar of module:selectors~Selector components.

Constructor

new SelectorsToolbar(selectors)

Class constructor.

Parameters:
Name Type Description
selectors Array.<module:selectors~Selector>

An array of selector components contained in the toolbar.

Implements:
Source:

Members

domElement :HTMLDivElement

Reference to the DOM object that contains the HTML structure of the component.

Type:
  • HTMLDivElement
Implements:
Source:

selectors :Array.<module:selectors~Selector>

The array of selector components contained in the toolbar.

Type:
Source:

Methods

disable()

Disables the component.

Implements:
Source:

enable()

Enables the component.

Implements:
Source:

remove()

Removes the DOM elements associated to the toolbar.

Source:

update(selectorIndex, dropdownItemIndex, selectorsToAppend)

Updates the toolbar by removing the obsolete selectors and appending the ones provided.

Parameters:
Name Type Description
selectorIndex number

The index in the toolbar of the selector triggering the update.

dropdownItemIndex number

The index in the dropdown option list which triggered the update.

selectorsToAppend Array.<module:selectors~Selector>

The array of selectors that should be appended to the toolbar.

Source: