Creates a 'MetaView ColumnCollection' object. This object creates a collection that manages columns in the meta view.
Protected
_baseSave the default column type.
Protected
_elemDefines the type constraints for the collection element.
Unique identifier of the object (GUID). Uniquely identifies the object.
Readonly
_listAn array that stores a list of elements in a collection. This array contains actual data from the collection.
Protected
_ownerOwned object of the collection.
List of entities referenced by this collection. Each entity is of type 'BaseEntity'.
The generator function of the object. The function used when the object was created.
Stores the key values of the collection element in an array.
Readonly
countReturns the number of elements in the current collection.
Readonly
lengthReturns the number of elements in the current collection.
Static
Readonly
_NSIndicates the namespace.
Static
Readonly
_PARAMList of parameters used for the constructor.
Static
Readonly
_UNIONList of implemented interfaces.
Protected
_getProtected
_ownerAdds or sets a column to the collection. When a column is added, actions related to the reference collection are performed.
The column to be added. You can receive the 'MetaColumn' object or column name (string).
Reference collection. Object of type 'BaseColumnCollection'.
The index of the added column. The index represents the location of the column within the collection.
Adds all columns of a given entity to the collection.
The entity to be added to the collection. The object of type 'BaseEntity'.
Creates a new column with a name and value and adds it to the collection.
The name of the column you want to add.
Default value for the column. You can receive string, numeric, or Boolean values.
Reference collection. Object of type 'BaseColumnCollection'.
Index of the newly added column.
Obtain column objects for aliases.
alias name.
The column object corresponding to the alias, if it does not exist, is 'undefined'.
Test that all elements pass the test implemented with the provided function.
콜백함수 입니다. (currentValue, index, array) => boolean
Optional
thisArg: anyThe value to use as this when executing the callback function.
True if you return a true value for all array elements, otherwise false.
Filter only to elements that have passed the test implemented by the provided function
콜백함수 입니다.(currentValue, index, array) => boolean
Optional
thisArg: anyThe value to use as this when executing the callback function.
Returns a new array of results.
Returns the first element that satisfies the provided test function
This is the callback function. (currentValue, index, array) => any
Optional
thisArg: anyThe value to use as this when executing the callback function.
The first element in the array that satisfies the test function. If no element satisfies the test function, undefined is returned.
Returns the first element that satisfies the provided test function
콜백함수 입니다. (currentValue, index, array) => boolean
Optional
thisArg: anyThe value to use as this when executing the callback function. Index of the first element that passes the @returns{number} test. If no match exists, return -1.
Run the function provided for each element once.
This is the callback function. (currentValue, index, array) => void
Optional
thisArg: anyThe value to use as this when executing the callback function.
Converts the current 'MetaView ColumnCollection' object to a serialized object. In the serialization process, the cyclic reference is replaced by the value '$ref'.
Optional
vOpt: numberSpecifies the import option.
Optional
owned: object | object[]The parent objects that currently own the object. You can receive an object or array of objects.
Serialized object.
Collects the results of calling a given function for each element and returns a new array.
This is the callback function (currentValue, index, array) => any[]
Optional
thisArg: anyThe value to use as this when executing the callback function.
Returns a new array of results.
Run the given reducer function for each element and return one result.
콜백함수 입니다. (accumulator, currentValue, index, array) => any
Optional
initialValue: anyUse the first element of the array if it does not provide an initial value.
Returns a new array of results.
Test that at least one element passes through a given discriminant function.
콜백함수 입니다. (currentValue, index, array) => boolean
Optional
thisArg: anyThe value to use as this when executing the callback function.
Returns true if you return a true value for one element, or false.
Events that occur before adding an element to a collection.
BaseCollection#onAdd
Index of the element to be added.
The element to add.
current collection object.
Events that occur after you add an element to a collection.
BaseCollection#onAdded
Index of added elements.
Added element.
current collection object.
Events that occur after you change an element in a collection.
BaseCollection#onChanged
Index of the changed element.
Changed element.
current collection object.
An event that occurs before you change an element in a collection.
BaseCollection#onChanging
Index of the element to be changed.
The element to be changed.
current collection object.
Events that occur before the collection is initialized.
BaseCollection#onClear
current collection object.
Events that occur after the collection is initialized.
BaseCollection#onCleared
current collection object.
An event that occurs before an element is deleted from the collection.
BaseCollection#onRemove
Index of the element to be deleted.
The element to delete.
current collection object.
Events that occur after you delete an element from a collection.
BaseCollection#onRemoved
Index of deleted elements.
Deleted element.
current collection object.
The 'MetaView Column Collection' class defines the collection that manages the meta-view column. This class provides the ability to add meta columns, to serialize and manage reference collections.