diff --git a/samples/grids/pivot-grid/features/src/index.tsx b/samples/grids/pivot-grid/features/src/index.tsx index 8da3538fc..fcde4e746 100644 --- a/samples/grids/pivot-grid/features/src/index.tsx +++ b/samples/grids/pivot-grid/features/src/index.tsx @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client'; import './index.css'; import { IgrPivotGridModule } from 'igniteui-react-grids'; -import { IgrPivotGrid, IgrPivotConfiguration, IgrPivotDateDimension, IgrPivotDimension, IgrPivotDateDimensionOptions, SortingDirection, IgrPivotValue, IgrPivotAggregator } from 'igniteui-react-grids'; +import { IgrPivotGrid, IgrPivotConfiguration, IgrPivotDateDimension, IgrPivotDimension, IgrPivotDateDimensionOptions, SortingDirection, IgrPivotValue, IgrPivotAggregator, PivotAggregationType} from 'igniteui-react-grids'; import { PivotDataFlatItem, PivotDataFlat } from './PivotDataFlat'; import 'igniteui-react-grids/grids/combined'; @@ -66,18 +66,18 @@ export default class Sample extends React.Component { SumOfSale.key = "SUM"; SumOfSale.label = "Sum of Sale"; SumOfSale.aggregator = this.pivotDataFlatAggregateSumSale; - SumOfSale.aggregatorName = "SUM"; + SumOfSale.aggregatorName = PivotAggregationType.SUM; var MinOfSale = new IgrPivotAggregator(); MinOfSale.key = "MIN"; MinOfSale.label = "Minimum of Sale"; MinOfSale.aggregator = this.pivotDataFlatAggregateMinSale; - MinOfSale.aggregatorName = "MIN"; + MinOfSale.aggregatorName = PivotAggregationType.MIN; var MaxOfSale = new IgrPivotAggregator(); MaxOfSale.key = "MAX"; MaxOfSale.label = "Maximum of Sale"; - MaxOfSale.aggregatorName = "MAX"; + MaxOfSale.aggregatorName = PivotAggregationType.MAX; MaxOfSale.aggregator = this.pivotDataFlatAggregateMaxSale; igrPivotValue1.aggregateList = [SumOfSale,MinOfSale,MaxOfSale];