Constructor
new SelectorsContainer(toolbarByPointer)
Class constructor.
Parameters:
Name | Type | Description |
---|---|---|
toolbarByPointer |
Map.<string, module:selectors~SelectorsToolbar> | A map containing the selectors toolbars, indexed by the JSON Pointer string that points to the in-place applicator represented by the first selector of the mapped toolbar. |
- Implements:
- Source:
Members
domElement :HTMLDivElement
Reference to the DOM object that contains the HTML structure of the component.
Type:
- HTMLDivElement
- Implements:
- Source:
toolbarByPointer :Map.<string, module:selectors~SelectorsToolbar>
The map containing the selectors toolbars indexed by the JSON Pointer string that points to the in-place applicator represented by the first selector of the mapped toolbar.
Type:
- Map.<string, module:selectors~SelectorsToolbar>
- Source:
Methods
disable()
Disables the component.
- Implements:
- Source:
enable()
Enables the component.
- Implements:
- Source:
update(formElementId, pointer, selectorIndex, dropdownItemIndex, callback)
Updates selectors toolbars present in the container and the underlying module:inPlaceApplicators~IPASchema tree.
Parameters:
Name | Type | Description |
---|---|---|
formElementId |
string | The |
pointer |
string | The JSON Pointer to the in-place applicator represented by the first selector of the toolbar which triggered the update. |
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. |
callback |
function | The callback function to be called on |
- Source: