A.FormBuilderLayoutBuilder Class
A.FormBuilder
extension, which handles the A.LayoutBuilder
inside it.
Constructor
A.FormBuilderLayoutBuilder
-
config
Parameters:
-
config
ObjectObject literal specifying layout builder configuration properties.
Index
Methods
- _addColMoveButton
- _addColMoveTarget
- _afterLayoutBuilderColsChange
- _afterLayoutBuilderMoveEnd
- _afterLayoutBuilderMoveStart
- _afterLayoutBuilderRender
- _bindMoveRowEvents
- _checkLastRow
- _chooseColMoveTarget
- _clickColMoveTarget
- _clickRemoveRow
- _createLastRow
- _detachCancelMoveFieldEvents
- _detachCancelMoveRowEvents
- _disableAddFields
- _enableAddFields
- _forceRemoveRow
- _getLastRow
- _initRemoveConfirmationModal
- _isColumnEmpty
- _onClickOutsideMoveColTarget
- _onClickOutsideMoveRowTarget
- _onEscKeyPressMoveTarget
- _onFormBuilderToolbarHasAddedToField
- _removeColMoveButtons
- _removeColMoveTargets
- _removeLayoutCutColButtons
- _selectFirstValidMoveTarget
- _setMoveButtonData
- destructor
- initializer
Methods
_addColMoveButton
-
colNode
-
rowNode
Overrides default addColMoveButton
attribute.
_addColMoveTarget
-
col
Overrides default addColMoveTarget
attribute.
Parameters:
-
col
A.LayoutCol
_afterLayoutBuilderColsChange
()
protected
Executed after the layout:rowsChange
is fired.
_afterLayoutBuilderMoveEnd
()
protected
Executed after the layout-builder:moveEnd
is fired.
_afterLayoutBuilderMoveStart
-
event
Executed after the layout-builder:moveStart
is fired.
Parameters:
-
event
EventFacade
_afterLayoutBuilderRender
()
protected
Fired after this widget is rendered.
_bindMoveRowEvents
()
protected
Bind events related to the cancel move row funcionality.
_checkLastRow
-
layout
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:
-
layout
A.Layout
_chooseColMoveTarget
-
originalFn
-
cutButton
-
col
Overrides default chooseColMoveTarget
attribute.
Parameters:
-
originalFn
Function -
cutButton
Node -
col
A.LayoutCol
_clickColMoveTarget
-
moveTarget
Overrides default clickColMoveTarget
attribute.
Parameters:
-
moveTarget
Node
_clickRemoveRow
-
row
Overrides default clickRemoveRow
attribute. Check if the parameter row
has fields.
Parameters:
-
row
A.LayoutRow
Returns:
_createLastRow
-
layout
Creates a new row in the last position.
Parameters:
-
layout
A.Layout
_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
Gets the last row.
Parameters:
-
layout
A.Layout
Returns:
_initRemoveConfirmationModal
()
protected
Create a confirmation modal to be used when a remove row button from a row with fields is clicked.
_isColumnEmpty
-
col
Checks if the given column is empty.
Parameters:
-
col
A.LayoutCol
Returns:
_onClickOutsideMoveColTarget
-
event
Fires when click event is triggered.
Parameters:
-
event
EventFacade
_onClickOutsideMoveRowTarget
-
event
Fires when click event is triggered.
Parameters:
-
event
EventFacade
_onEscKeyPressMoveTarget
()
protected
Fires when esc key press event is triggered.
_onFormBuilderToolbarHasAddedToField
-
event
Fired when mouse enters a toolbar's field.
Parameters:
-
event
EventFacade
_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
Show or hide move item in toolbar.
Parameters:
-
colNode
Node
destructor
()
protected
Destructor implementation for the A.FormBuilderLayoutBuilder
class.
Lifecycle.
initializer
()
protected
Construction logic executed during the A.FormBuilderLayoutBuilder
instantiation. Lifecycle.