Show:

A base class for A.FormBuilderFieldList.

Constructor

A.FormBuilderFieldList

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_addEmptyColumnFieldClasses

(
  • content
)
protected

Executed to the last empty column.

Parameters:

_afterEnableAddFieldsChange

() protected

Fired after the enableAddFields attribute change.

_afterFieldsChange

() protected

Fired after the fields attribute is set.

_appendAddFieldNode

(
  • container
)
protected

Appends add field on the given container.

Parameters:

_appendAddMoveTargetNode

(
  • container
  • index
)
protected

Appends move target button on the given container.

Parameters:

_onClickAddField

(
  • event
)
protected

Fired when the button for adding a new field is clicked.

Parameters:

_onMouseEnterAddButton

(
  • event
)
protected

Fired when mouse enters the button for adding a new field.

Parameters:

_onMouseLeaveAddButton

(
  • event
)
protected

Fired when mouse leaves the button for adding a new field.

Parameters:

_uiSetField

(
  • container
  • field
  • index
)
protected

Append a field and its necessaries elements into a given container.

Parameters:

_uiSetFields

(
  • fields
)
protected

Updates the ui according to the value of the fields attribute.

Parameters:

  • fields Array

_uiToggleDisableAddField

() protected

Toggle disabled class to the add field button.

_updateRemovableLayoutColProperty

() protected

Update removable property for layout cols.

addField

(
  • field
  • index
)

Adds a new field to the A.FormBuilderFieldList.

Parameters:

initializer

() protected

Construction logic executed during the A.FormBuilderFieldList instantiation. Lifecycle.

removeField

(
  • field
)

Removes the given field from the A.FormBuilderFieldList.

Parameters:

Properties

ATTRS

Object static

Static property used to define the default attribute configuration for the A.FormBuilderFieldList.

Attributes

content

Node

Node containing the contents of this field list.

enableAddFields

Boolean

Attribute responsible for enabling or disabling the feature of adding fields.

strings

Object

Collection of strings used to label elements of the UI.