ChangeLogTransactionModel

Represents a set of changes made as a result of a single user action. Changelog transactions may optionally be associated with a single VersionModel.

In normal usage, the Versions feature will capture one ChangeLogTransactionModel as a result of a single user action, for example, dragging a task on the timeline. This transaction will contain multiple ChangeLogActions representing the various effects that dragging a task can have - changes to start and end dates, updates to related dependent tasks, and so on.

Changelog transactions can be customized by extending a new model from ChangeLogTransactionModel. For an example, see the Gantt versions demo.

Individual changes making up a transaction are stored in the actions field.

Refer to Versions for more information about versioning.

Properties

62

Class hierarchy

isChangeLogTransactionModel: Boolean= truereadonly
Identifies an object as an instance of ChangeLogTransactionModel class, or subclass thereof.
isChangeLogTransactionModel: Boolean= truereadonlystatic
Identifies an object as an instance of ChangeLogTransactionModel class, or subclass thereof.
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTreeNodeTreeNode

Editing

copyOfModel
isValidModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

stmModelStm

Other

$namestaticModel
relationsstaticModel

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Functions

54

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Other

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Typedefs

1

Fields

4

The ChangeLogActions that this transaction comprises.

description: String

An optional, custom text description of the transaction.

The date and time when the transaction started.

versionId: String

The ID of the version to which this transaction belongs, or null if the transaction is not yet associated with any version.