A.LayoutBuilderMove Class
A base class for Layout Move.
Constructor
A.LayoutBuilderMove
-
config
Parameters:
-
configObjectObject literal specifying layout configuration properties.
Index
Methods
- _addColMoveButton
- _addColMoveTarget
- _addMovingClass
- _afterEnableMoveColsChange
- _afterEnableMoveRowsChange
- _afterMoveColsChange
- _afterMoveIsColumnModeChange
- _afterMoveLayoutChange
- _afterMoveMovableChange
- _afterMoveRowsChange
- _appendMoveButtonToCols
- _appendMoveButtonToRows
- _bindMoveColsEvents
- _bindMoveRowEvents
- _chooseColMoveTarget
- _clickColMoveTarget
- _clickOnCutButton
- _createRowTargetArea
- _createRowTargetAreaInOneDirection
- _hasAnythingMovable
- _insertCutButtonOnCols
- _insertCutButtonOnRow
- _moveToTarget
- _onEscKey
- _onKeyPressOnMoveCutButton
- _onKeyPressOnMoveTarget
- _onMouseClickOnMoveCutButton
- _onMouseClickOnMoveTarget
- _removeAllCutButton
- _removeColMoveButtons
- _removeColMoveTargets
- _removeCutButtonFromRow
- _removeMovingClass
- _removeMovingClass
- _removeTargetArea
- _resetMoveUI
- _uiSetEnableMoveCols
- _uiSetEnableMoveRows
- _unbindMoveColEvents
- _unbindMoveRowEvents
- cancelMove
- destructor
- initializer
Properties
- _colToBeMoved
- _rowToBeMoved
- ATTRS static
Methods
_addColMoveButton
-
colNode -
rowNode
Default value for addColMoveButton attribute.
_addColMoveTarget
-
col -
index
Default value for addColMoveTarget attribute.
Parameters:
-
colA.LayoutCol -
indexNumber
_addMovingClass
()
protected
Adds CSS class to indicate that any element is moving.
_afterEnableMoveColsChange
()
protected
Fired after the enableMoveCols attribute changes.
_afterEnableMoveRowsChange
()
protected
Fired after the enableMoveRows attribute changes.
_afterMoveColsChange
()
protected
Fired after cols attribute changes.
_afterMoveIsColumnModeChange
-
event
Fired after layout:isColumnMode attribute changes.
Parameters:
-
eventEventFacade
_afterMoveLayoutChange
()
protected
Fired after layout attribute changes.
_afterMoveMovableChange
-
event
Fired after layout-row:movable attribute changes.
Parameters:
-
eventEventFacade
_afterMoveRowsChange
()
protected
Fired after rows attribute changes.
_appendMoveButtonToCols
()
protected
Appends a move button for each col.
_appendMoveButtonToRows
()
protected
Appends one move button before each row.
_bindMoveColsEvents
()
protected
Binds the necessary events for the functionality of moving cols on layout.
_bindMoveRowEvents
()
protected
Binds the necessary events for the functionality of moving rows on layout.
_chooseColMoveTarget
-
cutButton -
col
Default value for chooseColMoveTarget attribute.
Parameters:
-
cutButtonNode -
colA.LayoutCol
_clickColMoveTarget
-
target
Default value for clickColMoveTarget attribute.
Parameters:
-
targetNode
_clickOnCutButton
-
cutButton
Starts or cancels movement of rows and cols.
Parameters:
-
cutButtonNode
_createRowTargetArea
()
protected
Default value for chooseRowMoveTarget attribute.
_createRowTargetAreaInOneDirection
-
direction
Create target area to move the row to one direction.
Parameters:
-
directionStringShould be either 'before' or 'after'.
_hasAnythingMovable
-
row
Checks if the given row either can be moved or has at least one column that can.
Parameters:
-
rowA.LayoutRow
Returns:
_onEscKey
()
protected
Fires when the esc key is pressed.
_onKeyPressOnMoveCutButton
-
event
Fires when key press on cut button.
Parameters:
-
eventEventFacade
_onKeyPressOnMoveTarget
-
event
Fires when key press on target area.
Parameters:
-
eventEventFacade
_onMouseClickOnMoveCutButton
-
event
Fires when click on cut button.
Parameters:
-
eventEventFacade
_onMouseClickOnMoveTarget
-
event
Fires when click on target area.
Parameters:
-
eventEventFacade
_removeColMoveButtons
-
clickedButton
Default value for removeColMoveButtons attribute.
Parameters:
-
clickedButtonNode
_removeColMoveTargets
()
protected
Default value for removeColMoveTargets attribute.
_removeMovingClass
()
protected
Removes the CSS class indicating that some element has moving.
_removeMovingClass
()
protected
Removes the CSS class indicating that some element has moving.
_removeTargetArea
()
protected
Removes all target area.
_resetMoveUI
()
protected
Reset the UI to a initial state.
_uiSetEnableMoveCols
-
enableMoveCols
Updates the UI according to the value of the enableMoveCols attribute.
Parameters:
-
enableMoveColsBoolean
_uiSetEnableMoveRows
-
enableMoveRows
Updates the UI according to the value of the enableMoveRows attribute.
Parameters:
-
enableMoveRowsBoolean
_unbindMoveColEvents
()
protected
Unbinds the events related to the functionality of moving cols from layout.
_unbindMoveRowEvents
()
protected
Unbinds the events related to the functionality of moving rows from layout.
cancelMove
()
Cancels the ongoing move operation.
destructor
()
protected
Destructor implementation for the A.LayoutBuilderMove class. Lifecycle.
initializer
()
protected
Construction logic executed during instantiation. Lifecycle.
Properties
ATTRS
Object
static
Static property used to define the default attribute configuration for the
A.LayoutBuilderMove.