v7.3.0

DependencyBaseModel

Base class used for both Scheduler and Gantt that defines the common dependency fields such as from, to, and type. Not intended to be used directly — use DependencyModel instead.

See also

No results

Fields

Fields belong to a Model class and define the Model data structure
  • Bidirectional, drawn with arrows in both directions

  • From event, id of source event

  • fromSide : 'top'/'left'/'bottom'/'right'

    Start side on source (top, left, bottom, right)

  • The magnitude of this dependency's lag (the number of units).

  • To event, id of target event

  • toSide : 'top'/'left'/'bottom'/'right'

    End side on target (top, left, bottom, right)

  • Dependency type, see static property Type

  • CSS class to apply to lines drawn for the dependency

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isDependencyBaseModel : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of DependencyBaseModel class, or subclass thereof.
  • Alias to dependency type, but when set resets fromSide & toSide to null as well.

  • Returns true if the linked events have been persisted (e.g. neither of them are 'phantoms')

  • isValid : Boolean
    READONLY

    Returns true if the dependency is valid. It is considered valid if it has a valid type and both from and to events are set and pointing to different events.

Functions

Functions are methods available for calling on the class

Type definitions

Source path

Scheduler/model/DependencyBaseModel.js

Contents