Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes from igniteui-xplat-examples-output+PRs_2024.12.18.3 #914

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions samples/grids/pivot-grid/features/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,28 @@ export class Sample {
pivotValue1.member = "AmountofSale";
pivotValue1.displayName = "Amount of Sale";
pivotValue1.enabled = true;
var SumOfSale: IgcPivotAggregator = {} as IgcPivotAggregator;
SumOfSale.key = "SUM";
SumOfSale.label = "Sum of Sale";
SumOfSale.aggregator = this.pivotDataFlatAggregateSumSale;
SumOfSale.aggregatorName = "SUM";

var MinOfSale: IgcPivotAggregator = {} as IgcPivotAggregator;
MinOfSale.key = "MIN";
MinOfSale.label = "Minimum of Sale";
MinOfSale.aggregator = this.pivotDataFlatAggregateMinSale;
MinOfSale.aggregatorName = "MIN";

var MaxOfSale: IgcPivotAggregator = {} as IgcPivotAggregator;
MaxOfSale.key = "MAX";
MaxOfSale.label = "Maximum of Sale";
MaxOfSale.aggregatorName = "MAX";
MaxOfSale.aggregator = this.pivotDataFlatAggregateMaxSale;

pivotValue1.aggregateList = [SumOfSale,MinOfSale,MaxOfSale];
var pivotAggregator1: IgcPivotAggregator = {} as IgcPivotAggregator;
pivotAggregator1.key = "SUM";
pivotAggregator1.label = "Sum of Sale";
pivotAggregator1.aggregator = this.pivotDataFlatAggregateSumSale;

pivotValue1.aggregate = pivotAggregator1;
var pivotAggregator2: IgcPivotAggregator = {} as IgcPivotAggregator;
pivotAggregator2.key = "SUM";
pivotAggregator2.label = "Sum of Sale";
pivotAggregator2.aggregator = this.pivotDataFlatAggregateSumSale;

var pivotAggregator3: IgcPivotAggregator = {} as IgcPivotAggregator;
pivotAggregator3.key = "MIN";
pivotAggregator3.label = "Minimum of Sale";
pivotAggregator3.aggregator = this.pivotDataFlatAggregateMinSale;

var pivotAggregator4: IgcPivotAggregator = {} as IgcPivotAggregator;
pivotAggregator4.key = "MAX";
pivotAggregator4.label = "Maximum of Sale";
pivotAggregator4.aggregator = this.pivotDataFlatAggregateMaxSale;

pivotValue1.aggregateList = [pivotAggregator2,pivotAggregator3,pivotAggregator4];

pivotConfiguration1.values = [pivotValue1];

Expand Down
Loading