Show:

A.FormBuilder extension, which handles the A.LayoutBuilder inside it.

Constructor

A.FormBuilderLayoutBuilder

(
  • config
)

Parameters:

  • config Object

    Object literal specifying layout builder configuration properties.

Methods

_addColMoveButton

(
  • colNode
  • rowNode
)
protected

Overrides default addColMoveButton attribute.

Parameters:

_addColMoveTarget

(
  • col
)
protected

Overrides default addColMoveTarget attribute.

Parameters:

_afterLayoutBuilderColsChange

() protected

Executed after the layout:rowsChange is fired.

_afterLayoutBuilderMoveEnd

() protected

Executed after the layout-builder:moveEnd is fired.

_afterLayoutBuilderMoveStart

(
  • event
)
protected

Executed after the layout-builder:moveStart is fired.

Parameters:

_afterLayoutBuilderRender

() protected

Fired after this widget is rendered.

_bindMoveRowEvents

() protected

Bind events related to the cancel move row funcionality.

_checkLastRow

(
  • layout
)
protected

Checks if the last row has more than one col or if it has at least one field, if true a new row is created and set on the last position.

Parameters:

_chooseColMoveTarget

(
  • originalFn
  • cutButton
  • col
)
protected

Overrides default chooseColMoveTarget attribute.

Parameters:

_clickColMoveTarget

(
  • moveTarget
)
protected

Overrides default clickColMoveTarget attribute.

Parameters:

_clickRemoveRow

(
  • row
)
Boolean protected

Overrides default clickRemoveRow attribute. Check if the parameter row has fields.

Parameters:

Returns:

Boolean:

_createLastRow

(
  • layout
)
protected

Creates a new row in the last position.

Parameters:

_detachCancelMoveFieldEvents

() protected

Detaches events related to the cancel move field funcionality.

_detachCancelMoveRowEvents

() protected

Detaches events related to the cancel move row funcionality.

_disableAddFields

() protected

Disable add fields functionality.

_enableAddFields

() protected

Enable add fields functionality.

_forceRemoveRow

() protected

Removes a row even with field.

_getLastRow

(
  • layout
)
A.LayoutRow protected

Gets the last row.

Parameters:

Returns:

_initRemoveConfirmationModal

() protected

Create a confirmation modal to be used when a remove row button from a row with fields is clicked.

_isColumnEmpty

(
  • col
)
Boolean protected

Checks if the given column is empty.

Parameters:

Returns:

Boolean:

_onClickOutsideMoveColTarget

(
  • event
)
protected

Fires when click event is triggered.

Parameters:

_onClickOutsideMoveRowTarget

(
  • event
)
protected

Fires when click event is triggered.

Parameters:

_onEscKeyPressMoveTarget

() protected

Fires when esc key press event is triggered.

_onFormBuilderToolbarHasAddedToField

(
  • event
)
protected

Fired when mouse enters a toolbar's field.

Parameters:

_removeColMoveButtons

() protected

Overrides default removeColMoveButtons attribute.

_removeColMoveTargets

() protected

Overrides default removeColMoveTargets attribute.

_removeLayoutCutColButtons

() protected

Remove original layout cut col buttons.

_selectFirstValidMoveTarget

() protected

Find and focus on first valid move target.

_setMoveButtonData

(
  • colNode
)
protected

Show or hide move item in toolbar.

Parameters:

destructor

() protected

Destructor implementation for the A.FormBuilderLayoutBuilder class. Lifecycle.

initializer

() protected

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