EventUpdateAction
An STM action that records the update of an event model, extending the base UpdateAction with Scheduler Pro-specific handling. This action is aware of event segments and preserves segment instance references during undo/redo so that segment-level STM tracking remains consistent.
It also includes logic to normalize end-date-driven duration changes for the revisions feature, converting indirect field changes into direct ones to reduce conflicts when multiple clients edit the same event concurrently.
See also
- EventModel — The event model whose updates this action records
- StateTrackingManager — The STM manager that orchestrates undo/redo
- Versions — The revisions feature that uses normalized field changes
Configs
Configs are options you supply in a configuration object when creating an instance of this classProperties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of EventUpdateAction class, or subclass thereof.
-
Gets the type of the action (stringified class name).
-
Identifies an object as an instance of EventUpdateAction class, or subclass thereof.
-
Identifies an object as an instance of UpdateAction class, or subclass thereof.
-
Reference to a model which has been updated.
Has a corresponding model config.
-
Map of updated properties with new values.
Has a corresponding newData config.
-
Map of updated properties with old values.
Has a corresponding oldData config.
Functions
Functions are methods available for calling on the class-
redo( ) UpdateAction
Redoes an action
-
undo( ) UpdateAction
Undoes an action