49
Name
Parameters
Description
push(...item): number
...item (any[]): One or more PivotField objects to add to the
array.
Overridden to allow pushing fields by
header.
Returns The new length of the array.
remove(item): boolean item (any): Item to remove.
Removes an item from the array.
Returns True if the item was removed,
false if it wasn't found in the array.
(inherited from ObservableArray).
removeAt(index)
index (number): Position of the item to remove.
Removes an item at a specific position
in the array.
(inherited from ObservableArray).
setAt(index, item)
index (number): Position where the item will be assigned.
item (any): Item to assign to the array.
Assigns an item at a specific position in
the array.
(inherited from ObservableArray).
slice(begin?, end?): any[] begin? (number): Position where the copy starts.
end? (number): Position where the copy ends.
Creates a shallow copy of a portion of
an array.
Returns A shallow copy of a portion of
an array.
(inherited from ObservableArray).
sort(compareFn?): any[] compareFn? (Function): Specifies a function that defines the
sort order. If specified, the function should take two arguments
and should return -1, +1, or 0 to indicate the first argument is
smaller, greater than, or equal to the second argument. If
omitted, the array is sorted in dictionary order according to the
string conversion of each element.
Sorts the elements of the array in place.
Returns A copy of the sorted array.
(inherited from ObservableArray).
splice(index, count,
item?): any[]
index (number): Position where items will be added or
removed.
count (number): Number of items to remove from the array.
item? (any): Item to add to the array.
Removes and/or adds items to the array.
Returns An array containing the