Class: Store

Help4.control2.Store()

Central store for all control2 controls

Constructor

new Store()

Source:

Methods

(static) add(control) → {Help4.control2.Store}

adds a control to the control2 store
Parameters:
Name Type Description
control Help4.control2.Control
Source:
Returns:
Type
Help4.control2.Store

(static) clean() → {Help4.control2.Store}

empties the control2 store and destroys all currently contained controls
Source:
Returns:
Type
Help4.control2.Store

(static) find(elem) → (nullable) {Help4.control2.Control}

find a control based on automatic DOM id and control id mapping
Parameters:
Name Type Description
elem HTMLElement
Source:
Returns:
Type
Help4.control2.Control

(static) get(controlIdopt) → {Help4.control2.Control|Object|null}

gets a control or all of them
Parameters:
Name Type Attributes Description
controlId string <optional>
Source:
Returns:
Type
Help4.control2.Control | Object | null

(static) getTexts(onlyVisibleopt) → {Object|null}

Parameters:
Name Type Attributes Default Description
onlyVisible boolean <optional>
false
Source:
Returns:
Type
Object | null

(static) getTopLevelControls(onlyVisibleopt) → {Array.<Help4.control2.Control>}

top level controls are not hosted by another control
Parameters:
Name Type Attributes Default Description
onlyVisible boolean <optional>
false
Source:
Returns:
Type
Array.<Help4.control2.Control>

(static) remove(control) → {Help4.control2.Store}

removes a control from the control2 store
Parameters:
Name Type Description
control Help4.control2.Control
Source:
Returns:
Type
Help4.control2.Store

(static) setTexts(textMap) → {Help4.control2.Store}

Parameters:
Name Type Description
textMap Object
Source:
Returns:
Type
Help4.control2.Store