Constructor
(abstract) new ChildrenHandler(parent)
Class constructor.
Parameters:
Name | Type | Description |
---|---|---|
parent |
module:formElement~FormElement | The parent form element containing the child applicator containers to be handled. |
Members
addButtons :Set
The set of add buttons associated to the handled child applicator containers.
Type:
- Set
applicators :object.<string, module:childApplicators~ChildApplicator>
The handled child applicator containers.
Type:
- object.<string, module:childApplicators~ChildApplicator>
domElement :HTMLDivElement
Reference to the DOM object that contains the HTML structure of the component.
Type:
- HTMLDivElement
parent :module:formElement~FormElement
The parent form element containing the handled child applicator containers.
Type:
removeButtons :Set
The set of remove buttons associated to the child form elements.
Type:
- Set
Methods
disable()
Disables all the child applicator containers.
disableAddButtons()
Disables the add buttons from all the child applicator containers.
disableRemoveButtons()
Disables the remove buttons from all the child form elements.
enable()
Enables all the child applicator containers.
enableAddButtons()
Enables the add buttons from all the child applicator containers.
enableRemoveButtons()
Enables the remove buttons from all the child form elements.
getChildCount() → {number}
Returns the total count of child form elements from all the different child applicator containers.
Returns:
The total count of child form elements.
- Type
- number