v7.3.0
SupportExamplesFree Trial

CalendarEditorExceptionModel
internal

This class represents a calendar exception - a special interval providing working time changes. The class is used by the calendar editor.

No results

Fields

Fields belong to a Model class and define the Model data structure
  • Specifies whether the exception is a working period of time or not. If the value is true:

  • Recurring end date of the exception.

  • Recurring start date of the exception.

  • The calendar this interval belongs to.

  • The interval end date (if the intervals overrides a specific date range).

  • The interval name.

  • The interval start date (if the intervals overrides a specific date range).

  • The interval type. It's either a week (specified default daily availability) or an exception (an availability override for a specific period of time, for example a holiday or a vacation).

  • A boolean field used by the LockRows feature for pinning a row to the top.

  • The timespan recurrence rule. A string in RFC-5545 described format ("RRULE" expression).

  • CSS class (or several classes divided by space) to append to row elements

  • Icon for row (used automatically in tree, feel free to use it in renderer in other cases)

  • Used by the default implementation of getRowHeight to determine row height. Set it to use another height than the default for the records row.

  • Start expanded or not (only valid for tree data)

  • A link to use for this record when rendered into a TreeColumn.

  • This is a read-only field provided in server synchronization packets to specify which position the node takes in the parent's ordered children array. This index is set on load and gets updated on reordering nodes in tree. Sorting and filtering have no effect on it.

  • parentId : String/Number/null
    READONLY
    TreeNode

    This is a read-only field provided in server synchronization packets to specify which record id is the parent of the record.

  • This is a read-only field provided in server synchronization packets to specify which position the node takes in the parent's children array. This index is set on load and gets updated automatically after row reordering, sorting, etc. To save the order, need to persist the field on the server and when data is fetched to be loaded, need to sort by this field.

  • Deprecated:

    This field has been deprecated. Please read the guide to find out if your app needs to use the new isFullyLoaded field.

    This field is added to the class at runtime when the Store is configured with lazyLoad. The number specified should reflect the total amount of children of a parent node, including nested descendants.

  • target : '_self'/'_blank'/'_parent'/'_top'/null
    GridRowModel

    The target to use if this tree node provides a value for the href field.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isCalendarEditorExceptionModel : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of CalendarEditorExceptionModel class, or subclass thereof.
  • isModelStm : Booleantrue
    READONLY
    static
    ADVANCED
    ModelStm
    Identifies an object as an instance of ModelStm class, or subclass thereof.
  • isRecurringTimeSpan : Booleantrue
    READONLY
    static
    ADVANCED
    RecurringTimeSpan
    Identifies an object as an instance of RecurringTimeSpan class, or subclass thereof.
  • isTreeNode : Booleantrue
    READONLY
    static
    ADVANCED
    TreeNode
    Identifies an object as an instance of TreeNode class, or subclass thereof.
  • properties : Object
    internal
    static
    GridRowModel

    A class property getter for the default values of internal properties for this class.

  • An array containing all the defined fields for this Model class. This will include all superclass's defined fields.

  • fieldMap : Object<String, DataField>
    READONLY
    static
    GridRowModel

    An object containing all the defined fields for this Model class. This will include all superclass's defined fields through its prototype chain. So be aware that Object.keys and Object.entries will only access this class's defined fields.

  • The data source for the id field which provides the ID of instances of this Model.

Functions

Functions are methods available for calling on the class
  • onClassMixedIn( )
    internal
    static
    GridRowModel

    This optional class method is called when a class is mixed in using the mixin() method.

  • initClass( )
    static
    ADVANCED
    GridRowModel

    Registers this class type with its Factory

  • exposeRelations( )
    internal
    static
    GridRowModel

    Makes getters and setters for related records. Populates a Model#relation array with the relations, to allow it to be modified later when assigning stores.

  • Cancels current batch operation. Any changes during the batch are discarded.

  • Reverts changes in this back to their original values.

  • Called from insertChild to notify StateTrackingManager about children insertion. Provides it with all necessary context information collected in beforeInsertChild required to undo/redo the action.

  • Called from removeChild to notify StateTrackingManager about children removing. Provides it with all necessary context information collected in beforeRemoveChild required to undo/redo the action.

  • Called during creation to also turn any children into Models joined to the same stores as this model

  • Detaches an occurrence from its owning recurring event so that it can be added to the eventStore either as an exception, or as the start of a new recurring sequence.

  • The method is triggered when the timespan recurrence settings get changed. It updates the recurrenceRule field in this case.

  • Override of Model's method. If an isOccurrence is passed, it is detached from its parent recurring event. If it still has a recurrence then the recurring event is changed to stop at the occurrence date. If it has no recurrence an exception is added at the occurrence date.

  • Removes this recurring timespan's cached occurrences.

  • Removes all cached occurrences on or after the passed date from this recurring timespan's cached occurrences.

  • Initializes model relations. Called from store when adding a record.

  • clear( )
    private
    TreeNode

    Removes all records from the rootNode

Source path

SchedulerPro/model/calendareditor/CalendarEditorExceptionModel.js

Contents