WbsField
This class is used for a WBS (Work Breakdown Structure) field. These fields hold a Wbs object for their value.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Setting to
truewill 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.
-
Set to
trueto 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 theexpandedandrowHeightfields which are used internally. -
The value to return from print for a
nullorundefinedvalue. -
The value to replace
nullwhen the field is notnullable. -
Setting to
falseindicates thatnullis not a valid value. -
Set to
falseto exclude this field when saving records to a server. -
Set to
truefor the field's set accessor to ignore attempts to set this field.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of WbsField class, or subclass thereof.
-
A class property getter for the default values of internal properties for this class.
-
An empty array that can be used as a default value.
-
An empty object that can be used as a default value.
-
Identifies an object as an instance of DataField class, or subclass thereof.
-
Identifies an object as an instance of WbsField class, or subclass thereof.
-
The class that first defined this field. Derived classes that override a field do not change this property.
-
The class that most specifically defined this field. Derived classes that override a field set this property to themselves.
-
Returns a copy of the full configuration which was used to configure this object.
-
This property is set to
truebefore theconstructorreturns. -
This property is set to
trueon entry to the destroy method. It remains on the objects after returning fromdestroy(). If isDestroyed istrue, this property will also betrue, 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-
This optional class method is called when a class is mixed in using the mixin() method.
-
Registers this class type with its Factory
-
Create getter and setter functions for the specified field name under the specified key.