Interface for classes implementing containers that represent JSON Schema child applicators.
Members
addButton :module:components~Component|undefined
A button that triggers the addition of new child JSON Schema form elements.
Type:
- module:components~Component | undefined
childByIndex :Map.<number, module:formElement~FormElement>
A map to all contained child JSON Schema objects indexed by an number value.
Type:
- Map.<number, module:formElement~FormElement>
childrenDiv :HTMLDivElement
Reference to the <div>
element containing the form element representation
of all child JSON Schema objects.
Type:
- HTMLDivElement
domElement :HTMLDivElement
Reference to the DOM object that contains the HTML structure of the JSON Schema child applicator.
Type:
- HTMLDivElement
handler :module:childApplicators~ChildrenHandler
The handler that includes the child applicator container.
Type:
title :module:components~Component|undefined
The title of the child applicator container.
Type:
- module:components~Component | undefined
titleIcon :module:components~Component|undefined
The title icon of the child applicator container.
Type:
- module:components~Component | undefined
Methods
addChild()
Adds a new child JSON Schema form element to the container.
disable()
Disables the child applicator container.
enable()
Enables the child applicator container.
getChildInstance() → {object}
Returns the part of the JSON instance that corresponds to the given JSON Schema child applicator.
Returns:
The portion related to the given child applicator of the complete JSON Schema instance.
- Type
- object
removeChild(index)
Removes a child JSON Schema form element from the container.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The key mapping to the child form element to be removed. |