[]
Pivot.PivotTable.PivotTableViewManager
• new PivotTableViewManager(applyCallback, saveCallback)
Represents a PivotTableViewManager.
| Name | Type |
|---|---|
applyCallback |
Function |
saveCallback |
Function |
▸ add(view): boolean
description Add a view to pivot table views.
example
var viewsManager = pivotTable.views;
viewsManager.add({
name: 'config1',
config: pivotTable.serialize()
});
viewsManager.get('config1');
| Name | Type | Description |
|---|---|---|
view |
IPivotTableView |
Indicates the view to add. |
boolean
▸ all(): IPivotTableView[]
description get all views from pivot table views.
example
var viewsManager = pivotTable.views;
viewsManager.save('config1');
console.log(viewsManager.all());
▸ apply(name): void
description apply a view to current pivot table.
example
var viewsManager = pivotTable.views;
viewsManager.save('config1');
viewsManager.apply('config1');
| Name | Type | Description |
|---|---|---|
name |
string |
Indicates the name of view to apply. |
void
▸ get(name): IPivotTableView
description get a view from pivot table views.
example
var viewsManager = pivotTable.views;
viewsManager.save('config1');
viewsManager.get('config1');
| Name | Type | Description |
|---|---|---|
name |
string |
Indicates the name of view to query. |
▸ remove(name): void
description remove a view from pivot table views.
example
var viewsManager = pivotTable.views;
viewsManager.remove('config1');
viewsManager.get('config1');
| Name | Type | Description |
|---|---|---|
name |
string |
Indicates the name of view to remove. |
void
▸ save(name): boolean
description Add a view to pivot table views.
example
var viewsManager = pivotTable.views;
viewsManager.save('config1');
viewsManager.get('config1');
| Name | Type | Description |
|---|---|---|
name |
string |
Indicates the name of view to save. |
boolean