PivotItemCollection
Contents
[
Hide
]PivotItemCollection class
Represents all the PivotItem objects in the PivotField.
class PivotItemCollection;
Methods
| Method | Description |
|---|---|
| get(number) | Gets the PivotItem Object at the specific index. |
| get(string) | Gets the PivotItem by the specific name. |
| hideAllDetail(boolean) | Sets whether to hide all detail of all PivotItems in a pivot field. That is collapse/expand this field. |
| swapItem(number, number) | Directly swap two items. |
get(number)
Gets the PivotItem Object at the specific index.
get(index: number) : PivotItem;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number |
Returns
get(string)
Gets the PivotItem by the specific name.
get(itemValue: string) : PivotItem;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| itemValue | string |
Returns
hideAllDetail(boolean)
Sets whether to hide all detail of all PivotItems in a pivot field. That is collapse/expand this field.
hideAllDetail(isHiddenDetail: boolean) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| isHiddenDetail | boolean | Whether hide the detail of the pivot field. |
swapItem(number, number)
Directly swap two items.
swapItem(index1: number, index2: number) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index1 | number | |
| index2 | number |