DependencyModel

This class represents a single dependency between the tasks in your Gantt project.

Subclassing the Dependency class

The name of any field in data can be customized in the subclass, see the example below.

class MyDependencyModel extends DependencyModel {
  static get fields() {
    return [
      { name: 'to', dataSource : 'targetId' },
      { name: 'from', dataSource : 'sourceId' }
    ];
  }
}

Configs

1
taskStorePartOfProject

Properties

74

Class hierarchy

isDependencyModel: Boolean= truereadonly
Identifies an object as an instance of DependencyModel class, or subclass thereof.
isDependencyModel: Boolean= truereadonlystatic
Identifies an object as an instance of DependencyModel class, or subclass thereof.
isDependencyBaseModelDependencyBaseModel
isModelModel
isModelLinkModelLink
isModelStmModelStm
isPartOfProjectPartOfProject
isTreeNodeTreeNode

Dependency

fullLagDependencyBaseModel
hardTypeDependencyBaseModel
TypestaticDependencyBaseModel

Editing

copyOfModel
isPersistableDependencyBaseModel
isValidDependencyBaseModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

stmModelStm

Models & Stores

assignmentStorePartOfProject
dependencyStorePartOfProject
eventStorePartOfProject
resourceStorePartOfProject
taskStorePartOfProject

Other

$namestaticModel
projectPartOfProject
relationsstaticModel

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Functions

63

Configuration

applyDefaultsstaticBase

Dependency

getHardTypeDependencyBaseModel
highlightDependencyBaseModel
isHighlightedWithDependencyBaseModel
setHardTypeDependencyBaseModel
setLagDependencyBaseModel
unhighlightDependencyBaseModel

Editing

copyModel
getDataModel
removeModel
setModel
setAsyncDependencyBaseModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Other

convertLagGenDependencyModel
getDefaultTypestaticDependencyBaseModel

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Typedefs

2
DependencyTypeDependencyBaseModel

Fields

2

The origin task of this dependency.

Accepts multiple formats but always returns an TaskModel.

NOTE: This is not a proper field but rather an alias, it will be serialized but cannot be remapped. If you need to remap, consider using from instead.

The destination task of this dependency.

Accepts multiple formats but always returns an TaskModel.

NOTE: This is not a proper field but rather an alias, it will be serialized but cannot be remapped. If you need to remap, consider using to instead.