A.LayoutBuilderResizeCol Class
LayoutBuilder extension, which can be used to add the funcionality of resizing columns of the builder's layout.
Constructor
A.LayoutBuilderResizeCol
-
config
Parameters:
-
config
ObjectObject literal specifying layout builder configuration properties.
Index
Methods
- _afterDragAlign
- _afterDragEnd
- _afterDragEnter
- _afterDragMouseDown
- _afterDragMouseup
- _afterDragStart
- _afterEnableResizeColsChange
- _afterResizeColIsColumnModeChange
- _afterResizeColLayoutChange
- _afterResizeColLayoutColsChange
- _afterResizeColLayoutRowsChange
- _bindResizeColEvents
- _canDrop
- _createDelegateDrag
- _handleBreakpointDrop
- _hideBreakpoints
- _hideColDraggableBoundaries
- _insertColumnAfterDropHandles
- _insertGrid
- _onKeyPressResizeColBreakpoint
- _onKeyPressResizeColDragHandle
- _onMouseEnterCol
- _onMouseEnterDraggable
- _onMouseEnterDraggable
- _removeDragHandles
- _removeGrid
- _resize
- _showBreakpoints
- _showColDraggableBoundaries
- _syncDragHandles
- _syncRowDragHandles
- _uiSetEnableResizeCols
- _unbindResizeColEvents
- destructor
- initializer
Properties
- _dragNode
- _gridlineNodes
- ATTRS static
Attributes
Methods
_afterDragAlign
()
protected
Fired when the drag:align
event is triggered.
_afterDragEnd
()
protected
Fired when the drag:end
event is triggered.
_afterDragEnter
-
event
Fired when the drag:enter
event is triggered.
Parameters:
-
event
EventFacade
_afterDragMouseDown
-
event
Fired when the drag:mouseDown
event is triggered.
Parameters:
-
event
EventFacade
_afterDragMouseup
-
event
Fired when the drag:mouseup
event is triggered.
Parameters:
-
event
EventFacade
_afterDragStart
-
event
Fired when the drag:start
event is triggered.
Parameters:
-
event
EventFacade
_afterEnableResizeColsChange
()
protected
Fired after the enableResizeCols
attribute changes.
_afterResizeColIsColumnModeChange
()
protected
Fired after the isColumnMode
changes.
_afterResizeColLayoutChange
()
protected
Fired after the layout
attribute is set.
_afterResizeColLayoutColsChange
()
protected
Fired after the cols
attribute from a layout row is set.
_afterResizeColLayoutRowsChange
()
protected
Fired after the rows
attribute from the layout is set.
_bindResizeColEvents
()
protected
Binds the necessary events for the functionality of resizing layout columns.
_canDrop
-
dragNode
-
position
Checks if a drag node can be dropped in the given position.
Returns:
_createDelegateDrag
()
protected
Creates the A.DD.Delegate
instance responsible for the dragging
functionality.
_handleBreakpointDrop
-
dragNode
-
dropNode
Handles the action of dropping a drag handler on top of a breakpoint.
_hideBreakpoints
-
rowNode
Hides all the breakpoints in the given row.
Parameters:
-
rowNode
Node
_hideColDraggableBoundaries
()
protected
Hides all the draggable bars.
_insertColumnAfterDropHandles
-
dragNode
Add new column for the given layout row after drop handler.
Parameters:
-
dragNode
Node
_insertGrid
()
protected
Inserts a grid to the current row in order to visualize the possible breakpoints.
_onKeyPressResizeColBreakpoint
-
event
Fired when the user starts the action to resize a col.
Parameters:
-
event
EventFacade
_onKeyPressResizeColDragHandle
-
event
Fired when the enter button is pressed on drag handle.
Parameters:
-
event
EventFacade
_onMouseEnterCol
-
event
Fired when the cursor is over a column.
Parameters:
-
event
EventFacade
_onMouseEnterDraggable
-
event
Fired when the cursor is over a Draggable bar.
Parameters:
-
event
EventFacade
_onMouseEnterDraggable
-
event
Fired when the cursor is over a Draggable bar.
Parameters:
-
event
EventFacade
_removeDragHandles
()
protected
Removes all the drag handles from the layout.
_removeGrid
()
protected
Removes the grid from the target.
_showBreakpoints
-
row
-
dragNode
Shows all breakpoints in the given row.
We need to show the drop targets before drag:start
event, or they won't work.
_showColDraggableBoundaries
-
colNode
Shows draggable bars of a column.
Parameters:
-
colNode
Node
_syncDragHandles
()
protected
Updates the drag handles for all the layout rows.
_syncRowDragHandles
-
row
Updates the drag handles for the given layout row.
Parameters:
-
row
A.LayoutRow
_uiSetEnableResizeCols
-
enableResizeCols
Updates the UI according to the value of the enableResizeCols
attribute.
Parameters:
-
enableResizeCols
Boolean
_unbindResizeColEvents
()
protected
Unbinds the events related to the functionality of resizing layout columns.
destructor
()
protected
Destructor implementation for the A.LayoutBuilderResizeCol
class.
Lifecycle.
initializer
()
protected
Construction logic executed during A.LayoutBuilderResizeCol
instantiation.
Lifecycle.
Properties
_gridlineNodes
Array
protected
Grid line nodes.
ATTRS
Object
static
Static property used to define the default attribute
configuration for A.LayoutBuilderResizeCol
.