Skip to content

Commit 5ad17ac

Browse files
azure-pipelines[bot]tfsbuild
andauthored
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.18.3 (#914)
Co-authored-by: tfsbuild <[email protected]>
1 parent cbe42f4 commit 5ad17ac

File tree

1 file changed

+22
-19
lines changed
  • samples/grids/pivot-grid/features/src

1 file changed

+22
-19
lines changed

samples/grids/pivot-grid/features/src/index.ts

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,28 @@ export class Sample {
5151
pivotValue1.member = "AmountofSale";
5252
pivotValue1.displayName = "Amount of Sale";
5353
pivotValue1.enabled = true;
54-
var SumOfSale: IgcPivotAggregator = {} as IgcPivotAggregator;
55-
SumOfSale.key = "SUM";
56-
SumOfSale.label = "Sum of Sale";
57-
SumOfSale.aggregator = this.pivotDataFlatAggregateSumSale;
58-
SumOfSale.aggregatorName = "SUM";
59-
60-
var MinOfSale: IgcPivotAggregator = {} as IgcPivotAggregator;
61-
MinOfSale.key = "MIN";
62-
MinOfSale.label = "Minimum of Sale";
63-
MinOfSale.aggregator = this.pivotDataFlatAggregateMinSale;
64-
MinOfSale.aggregatorName = "MIN";
65-
66-
var MaxOfSale: IgcPivotAggregator = {} as IgcPivotAggregator;
67-
MaxOfSale.key = "MAX";
68-
MaxOfSale.label = "Maximum of Sale";
69-
MaxOfSale.aggregatorName = "MAX";
70-
MaxOfSale.aggregator = this.pivotDataFlatAggregateMaxSale;
71-
72-
pivotValue1.aggregateList = [SumOfSale,MinOfSale,MaxOfSale];
54+
var pivotAggregator1: IgcPivotAggregator = {} as IgcPivotAggregator;
55+
pivotAggregator1.key = "SUM";
56+
pivotAggregator1.label = "Sum of Sale";
57+
pivotAggregator1.aggregator = this.pivotDataFlatAggregateSumSale;
58+
59+
pivotValue1.aggregate = pivotAggregator1;
60+
var pivotAggregator2: IgcPivotAggregator = {} as IgcPivotAggregator;
61+
pivotAggregator2.key = "SUM";
62+
pivotAggregator2.label = "Sum of Sale";
63+
pivotAggregator2.aggregator = this.pivotDataFlatAggregateSumSale;
64+
65+
var pivotAggregator3: IgcPivotAggregator = {} as IgcPivotAggregator;
66+
pivotAggregator3.key = "MIN";
67+
pivotAggregator3.label = "Minimum of Sale";
68+
pivotAggregator3.aggregator = this.pivotDataFlatAggregateMinSale;
69+
70+
var pivotAggregator4: IgcPivotAggregator = {} as IgcPivotAggregator;
71+
pivotAggregator4.key = "MAX";
72+
pivotAggregator4.label = "Maximum of Sale";
73+
pivotAggregator4.aggregator = this.pivotDataFlatAggregateMaxSale;
74+
75+
pivotValue1.aggregateList = [pivotAggregator2,pivotAggregator3,pivotAggregator4];
7376

7477
pivotConfiguration1.values = [pivotValue1];
7578

0 commit comments

Comments
 (0)