Baseline

This class represents a baseline of a Task.

Records based on this model are initially created when tasks are loaded into the TaskStore. If dates (startDate and endDate) are left out, the task's dates will be used. If dates are null, dates will be empty and the baseline bar won't be displayed in the UI.

Properties

75

Class hierarchy

isBaseline: Boolean= truereadonly
Identifies an object as an instance of Baseline class, or subclass thereof.
isBaseline: Boolean= truereadonlystatic
Identifies an object as an instance of Baseline class, or subclass thereof.
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTimeSpanTimeSpan
isTimeZonedDatesMixinTimeZonedDatesMixin
isTreeNodeTreeNode

Scheduling

Baseline duration variance in the task's duration unit.

Baseline end variance in the task's duration unit.

plannedPercentDone: Numberreadonly

Planned percent done for this baseline.

Baseline start variance in the task's duration unit.

datesTimeSpan
durationMSTimeSpan
isMilestoneTimeSpan
isScheduledTimeSpan

Editing

copyOfModel
isValidModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

eventStoreTimeSpan
stmModelStm

Other

$namestaticModel
relationsstaticModel

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode
wbsCodeTimeSpan

Functions

65

Other

Converts this baseline to a milestone (start date will match the end date).

Converts a milestone baseline to a regular baseline with a duration of 1 (keeping current durationUnit).

shiftTimeSpan

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
isTimeZoneDateFieldstaticTimeZonedDatesMixin
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
exportToICSTimeSpan
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Scheduling

forEachDateTimeSpan
setDurationTimeSpan
setEndDateTimeSpan
setStartDateTimeSpan
splitTimeSpan

Typedefs

1

Fields

7

An encapsulation of the CSS classes to be added to the rendered baseline element.

Always returns a DomClassList, but may still be treated as a string. For granular control of adding and removing individual classes, it is recommended to use the DomClassList API.

effort: Number

The numeric part of the baseline effort (the number of units).

The unit part of the baseline effort. Valid values are:

  • "millisecond" - Milliseconds
  • "second" - Seconds
  • "minute" - Minutes
  • "hour" - Hours
  • "day" - Days
  • "week" - Weeks
  • "month" - Months
  • "quarter" - Quarters
  • "year"- Years
endDate: Date

End date of the baseline in ISO 8601 format.

Note that the field always returns a Date.

Calculated field which encapsulates the effort's magnitude and unit. This field will not be persisted, setting it will update the effort and effortUnit fields.

startDate: Date

Start date of the baseline in ISO 8601 format.

Note that the field always returns a Date.

The owning Task of the Baseline