v7.3.0
SupportExamplesFree Trial

AISettingsModel
Experimental

An AISettingsModel defines the user settings for the Scheduler AI feature. It stores user preferences such as model selection and default range for AI-powered scheduling operations.

See also

  • AI - Scheduler AI feature
No results

Fields

Fields belong to a Model class and define the Model data structure

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isAISettingsModel : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of AISettingsModel class, or subclass thereof.
  • isModelStm : Booleantrue
    READONLY
    static
    ADVANCED
    ModelStm
    Identifies an object as an instance of ModelStm class, or subclass thereof.
  • isTreeNode : Booleantrue
    READONLY
    static
    ADVANCED
    TreeNode
    Identifies an object as an instance of TreeNode class, or subclass thereof.
  • 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
    AISettingsModel

    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.

  • emptyArray : Array
    internal
    READONLY
    AISettingsModel

    An empty array that can be used as a default value.

  • emptyObject : Object
    internal
    READONLY
    AISettingsModel

    An empty object that can be used as a default value.

  • isAISettingsModel : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of AISettingsModel class, or subclass thereof.
  • isModel : Booleantrue
    READONLY
    ADVANCED
    AISettingsModel
    Identifies an object as an instance of Model class, or subclass thereof.
  • For copied records, this property links to the original model instance from which it was copied.

  • True if this Model is currently batching its changes.

  • True if this models changes are currently being committed.

  • True if this model has any uncommitted changes.

  • Check if record has valid data. Default implementation returns true, override in your model to do actual validation.

  • Get a map of the modified fields in form of an object. The field´s dataSource is used as the property name in the returned object. The record's id is included unless its persist config is false.

  • Get a map of the modified data fields along with any alwaysWrite fields, in form of an object. The field´s dataSource is used as the property name in the returned object. Used internally by AjaxStore / CrudManager when sending updates.

  • Returns data for allpersistable fields in form of an object, using dataSource if present.

  • Returns a map of the modified persistable fields

  • Gets the records internalId. It is assigned during creation, guaranteed to be globally unique among models.

  • config : Object
    READONLY
    ADVANCED
    AISettingsModel

    Returns a copy of the full configuration which was used to configure this object.

  • This property is set to true before the constructor returns.

  • This property is set to true on entry to the destroy method. It remains on the objects after returning from destroy(). If isDestroyed is true, this property will also be true, so there is no need to test for both (for example, comp.isDestroying || comp.isDestroyed).

  • Get the first store that this model is assigned to.

  • Reference to STM manager, if used

  • This yields true if this record is eligible for syncing with the server. It can yield false if the record is in the middle of a batched update, or if it is a tentative record yet to be confirmed as a new addition.

  • isRemoved : Boolean
    internal
    READONLY
    AISettingsModel

    Returns true if this record is not part of any store.

  • Returns index path to this node. This is the index of each node in the node path starting from the topmost parent. (only relevant when its part of a tree store).

  • Array of tree nodes without any filter applied. On first filter, will take order from sorted children, but is not thereafter kept in sorted order, so order should not be relied upon.

  • Returns values of the persistable tree-defining fields: parentId, orderedParentIndex, and parentIndex or sparseIndex. parentIndex is omitted when sparseIndex is used.

Functions

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

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

  • initClass( )
    static
    ADVANCED
    AISettingsModel

    Registers this class type with its Factory

  • exposeRelations( )
    internal
    static
    AISettingsModel

    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

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

  • clear( )
    private
    TreeNode

    Removes all records from the rootNode

Source path

Scheduler/model/AISettingsModel.js

Contents