Interface: ChildApplicator

childApplicators~ChildApplicator

Interface for classes implementing containers that represent JSON Schema child applicators.

Source:

Members

addButton :module:components~Component|undefined

A button that triggers the addition of new child JSON Schema form elements.

Type:
Source:

childByIndex :Map.<number, module:formElement~FormElement>

A map to all contained child JSON Schema objects indexed by an number value.

Type:
Source:

childrenDiv :HTMLDivElement

Reference to the <div> element containing the form element representation of all child JSON Schema objects.

Type:
  • HTMLDivElement
Source:

domElement :HTMLDivElement

Reference to the DOM object that contains the HTML structure of the JSON Schema child applicator.

Type:
  • HTMLDivElement
Source:

handler :module:childApplicators~ChildrenHandler

The handler that includes the child applicator container.

Type:
Source:

title :module:components~Component|undefined

The title of the child applicator container.

Type:
Source:

titleIcon :module:components~Component|undefined

The title icon of the child applicator container.

Type:
Source:

Methods

addChild()

Adds a new child JSON Schema form element to the container.

Source:

disable()

Disables the child applicator container.

Source:

enable()

Enables the child applicator container.

Source:

getChildInstance() → {object}

Returns the part of the JSON instance that corresponds to the given JSON Schema child applicator.

Source:
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.

Source: