v7.3.0
SupportExamplesFree Trial

WbsField

This class is used for a WBS (Work Breakdown Structure) field. These fields hold a Wbs object for their value.

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • Setting to true will ensure this field is included in any update/insert request payload when a Store / Project / CrudManager performs a request.

  • When this flag is enabled, this field will skip the equality check when store is syncing the new dataset (see syncDataOnLoad config). This means, that even if the new value in new dataset is the same as old, it will still be applied to the model. It is useful in certain edge case scenarios, when the update of the field does not preserve extra context information, which should be provided by other fields.

  • calculated : Booleanfalse
    internal
    DataField

    Set to true to indicate this field is calculated and cannot be edited via UI

  • The property in a record's data object that contains the field's value. Defaults to the field's name.

  • The default value to assign to this field in a record if no value is provided.

  • A description used by the AI features to explain the field to the AI agent

  • By default, defined Model fields may be used to create a grid column suitable for displaying that field in a grid cell. Some fields may not be suitable for features which automatically generate columns for view. These fields are created using internal : true. Some examples are the expanded and rowHeight fields which are used internally.

  • The value to return from print for a null or undefined value.

  • The value to replace null when the field is not nullable.

  • Setting to false indicates that null is not a valid value.

  • Set to false to exclude this field when saving records to a server.

  • Set to true for the field's set accessor to ignore attempts to set this field.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isWbsField : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of WbsField class, or subclass thereof.
  • properties : Object
    internal
    static
    DataField

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

  • emptyArray : Array
    internal
    READONLY
    DataField

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

  • emptyObject : Object
    internal
    READONLY
    DataField

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

  • isDataField : Booleantrue
    READONLY
    ADVANCED
    DataField
    Identifies an object as an instance of DataField class, or subclass thereof.
  • isWbsField : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of WbsField class, or subclass thereof.
  • definedBy : Model
    private
    READONLY
    DataField

    The class that first defined this field. Derived classes that override a field do not change this property.

  • owner : Model
    private
    READONLY
    DataField

    The class that most specifically defined this field. Derived classes that override a field set this property to themselves.

  • config : Object
    READONLY
    ADVANCED
    DataField

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

  • isConstructing : Boolean
    READONLY
    ADVANCED
    DataField

    This property is set to true before the constructor returns.

  • isDestroying : Boolean
    READONLY
    ADVANCED
    DataField

    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).

Functions

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

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

  • initClass( )
    static
    ADVANCED
    DataField

    Registers this class type with its Factory

  • Create getter and setter functions for the specified field name under the specified key.

Source path

Gantt/data/field/WbsField.js

Contents