A.SchedulerTableViewDD Class
A base class for SchedulerTableViewDD
.
Constructor
A.SchedulerTableViewDD
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Index
Methods
- _afterDragAlign
- _findPosition
- _getDatePosition
- _getPositionDate
- _hasLassoChanged
- _offsetXY
- _onEventDragEnd
- _onEventDragStart
- _onMouseDownGrid
- _onMouseMoveGrid
- _onMouseUpGrid
- _setupDragDrop
- _syncCellDimensions
- _syncProxyNodeUI
- initializer
- removeLasso
- removeProxy
- renderLasso
- viewDDBindUI
- viewDDRenderUI
- viewDDSyncUI
Properties
- ATTRS static
Attributes
Methods
_findPosition
-
xy
Returns the grid cell position array for a given XY coordinate.
Parameters:
-
xy
Array
Returns:
The grid cell position array for a given XY coordinate.
_getDatePosition
-
date
Return the position coordinate of a given Date
.
Parameters:
-
date
Date
Returns:
The position coordinate of a given Date
.
_getPositionDate
-
position
Return the Date
corresponding to a given position coordinate.
Parameters:
-
position
ArrayThe XY position coordinate.
Returns:
The Date
corresponding to a given position coordinate.
_hasLassoChanged
-
position
Indicates whether the lasso value has changed given a XY position coordinate.
Parameters:
-
position
Object
Returns:
Whether the lasso value has changed given a XY position coordinate.
_offsetXY
-
xy
-
sign
Returns the offset XY coordinate given an XY coordinate and a sign.
Parameters:
-
xy
Array -
sign
Number
Returns:
The offset XY coordinate given an XY coordinate and a sign.
_setupDragDrop
()
protected
Configures a DD.Delegate
that handles DD
events for this
SchedulerTableViewDD
s.
_syncCellDimensions
()
protected
Updates this SchedulerTableViewDD
's grid cell dimension properties.
_syncProxyNodeUI
-
evt
Updates this SchedulerTableViewDD
's proxyNode UI styles and content.
Parameters:
-
evt
A.SchedulerEventA
Scheduler
event.
initializer
()
protected
Construction logic executed during SchedulerTableViewDD
instantiation.
Lifecycle.
removeLasso
()
Removes the table view lasso.
removeProxy
()
Removes the table view proxy node.
renderLasso
-
startPos
-
endPos
Renders the table view lasso at the given ij
coordinates for the table
matrix. It represents the selection for the table view, e.g. j
represents a row and i
a column, for startPos
being [0,0]
and
endPos
being [0,3]
, this method will render three nodes representing
the selected lasso.
Parameters:
-
startPos
ArrayContains starting i, j posiiton to lasso.
-
endPos
ArrayContains ending i, j posiiton to lasso.
viewDDBindUI
()
Binds the scheduler view DD.Delegate
events on the UI. Lifecycle.
viewDDRenderUI
()
Renders the scheduler view DD.Delegate
instance. Lifecycle.
viewDDSyncUI
()
Syncs the scheduler view DD.Delegate
instance. Lifecycle.
Properties
ATTRS
Object
static
Static property used to define the default attribute
configuration for the SchedulerTableViewDD
.