Create 'MetaColumn' object.
Specifies the name of the column.
Optional
entity: BaseEntityThe 'BaseEntity' object to which this column belongs. (Optional)
Optional
property: objectThe object that defines the additional properties of the column. (Optional)
Indicates the entity to which this column belongs. Object of type 'BaseEntity'.
Unique identifier of the object (GUID). Uniquely identifies the object.
The name of the element, which acts as a unique identifier for the MetaElement.
The generator function of the object. The function used when the object was created.
Defines the value type for the column. This property is used to set the value type for the column.
Indicates the alias for the column. The alias is used as another name for the column.
An event object that handles events, such as changing the column value.
Indicates the unique key for this column.
Limits direct access to values in a column. This property controls the setting and change of values inside.
Sets or imports aliases for columns. Aliases are used to transfer data and set low values. Where to use (default = columnName)
Provides a description of the column.
Indicates the name of the column. Same as '_name'.
Sets the constraints for the column. Constraints can be set in the form of objects or functions.
Sets the default value for the column.
Getter function of column value.
Sets whether a column value is required. If the value must exist, it is 'true', otherwise it is 'false'.
Setter function of column value.
This is the value to set.
Gets or sets the value of the column.
Static
Readonly
_NSIndicates the namespace.
Static
Readonly
_PARAMList of parameters used for the constructor.
Static
Readonly
_UNIONList of implemented interfaces.
Add constraints.
Regular expression to apply.
Message to display when regular expression fails.
Optional
code: stringCode for failure of regular expression. (Optional)
Optional
condition: booleanThe condition that determines whether a constraint is successful/failed. Default is 'false'.
Replicate the current column to create a new 'MetaColumn' object.
Optional
entity: BaseEntity'BaseEntity' of the target to be replicated. (Optional)
Replicated 'MetaColumn' object.
Converts the current 'MetaColumn' object to a serialized object. In the serialization process, the cyclic reference is replaced by the value '$ref'.
Optional
vOpt: numberSpecifies the serialization option.
Optional
owned: object | object[]The parent objects that currently own the object. You can receive an object or array of objects.
Serialized object.
Sets the serialized object to the current 'MetaColumn' object. During this process, the object is initialized.
object of serialized GUID type.
Optional
origin: objectThis is the original object that sets the current object. Default is 'oGuid'.
The event that occurs when the column value changes.
MetaColumn#onChanged
New value.
Previous value.
The object that caused the event.
The 'MetaColumn' class defines a data column and manages meta information for that column. This class provides the ability to set and process values, constraints, events, and more for a column.