module:core_group/groupPicker

module:core_group/groupPicker

new (require("core_group/groupPicker"))(elementId)

Description:
  • Creates the group picker class and finds the corresponding DOM element.

Source:
Parameters:
Name Type Default Description
elementId String groups

The DOM element id of the

Throws:

Error if the element was not found.

Classes

core_group/GroupPicker

Methods

getDomElement() → {HTMLElement}

Description:
  • Returns the DOM element this class is linked to.

Source:
Returns:

The DOM element

Type
HTMLElement

getSelectedValues() → {Array.<Number>}

Description:
  • Returns the selected group values.

Source:
Returns:

The group IDs that are currently selected.

Type
Array.<Number>