Show:

A base class for SchedulerTableViewDD.

Constructor

A.SchedulerTableViewDD

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterDragAlign

(
  • event
)
protected

Handles dragAlign events.

Parameters:

_findPosition

(
  • xy
)
Array protected

Returns the grid cell position array for a given XY coordinate.

Parameters:

  • xy Array

Returns:

Array:

The grid cell position array for a given XY coordinate.

_getDatePosition

(
  • date
)
Array protected

Return the position coordinate of a given Date.

Parameters:

Returns:

Array:

The position coordinate of a given Date.

_getPositionDate

(
  • position
)
Date protected

Return the Date corresponding to a given position coordinate.

Parameters:

  • position Array

    The XY position coordinate.

Returns:

Date:

The Date corresponding to a given position coordinate.

_hasLassoChanged

(
  • position
)
Boolean protected

Indicates whether the lasso value has changed given a XY position coordinate.

Parameters:

  • position Object

Returns:

Boolean:

Whether the lasso value has changed given a XY position coordinate.

_offsetXY

(
  • xy
  • sign
)
Array protected

Returns the offset XY coordinate given an XY coordinate and a sign.

Parameters:

Returns:

Array:

The offset XY coordinate given an XY coordinate and a sign.

_onEventDragEnd

(
  • event
)
protected

Handle eventDragEnd events.

Parameters:

_onEventDragStart

(
  • event
)
protected

Handle eventDragStart events.

Parameters:

_onMouseDownGrid

(
  • event
)
protected

Handle mouseDownGrid events.

Parameters:

_onMouseMoveGrid

(
  • event
)
protected

Handle mouseMoveGrid events.

Parameters:

_onMouseUpGrid

(
  • event
)
protected

Handle mouseUpGrid events.

Parameters:

_setupDragDrop

() protected

Configures a DD.Delegate that handles DD events for this SchedulerTableViewDDs.

_syncCellDimensions

() protected

Updates this SchedulerTableViewDD's grid cell dimension properties.

_syncProxyNodeUI

(
  • evt
)
protected

Updates this SchedulerTableViewDD's proxyNode UI styles and content.

Parameters:

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 Array

    Contains starting i, j posiiton to lasso.

  • endPos Array

    Contains 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.

Attributes

delegateConfig

Object

Configures this view's DD.Delegate.

Default: {}