Skip to content

Commit 6a47286

Browse files
committed
chore(*): Revert sample changes.
1 parent f48b1a2 commit 6a47286

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

src/app/pivot-grid/pivot-grid.sample.ts

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import {
88
IgxPivotDateDimension,
99
IPivotDimension,
1010
IDimensionsChange,
11-
DisplayDensity
11+
DisplayDensity,
12+
FilteringExpressionsTree,
13+
FilteringLogic,
14+
IgxStringFilteringOperand
1215
} from 'igniteui-angular';
1316
import { HIERARCHICAL_SAMPLE_DATA } from '../shared/sample-data';
1417

@@ -49,6 +52,18 @@ export class PivotGridSampleComponent {
4952
public cosy: DisplayDensity = DisplayDensity.cosy;
5053
public compact: DisplayDensity = DisplayDensity.compact;
5154

55+
public filterExpTree = new FilteringExpressionsTree(FilteringLogic.And);
56+
57+
constructor() {
58+
this.filterExpTree.filteringOperands = [
59+
{
60+
condition: IgxStringFilteringOperand.instance().condition('equals'),
61+
fieldName: 'SellerName',
62+
searchVal: 'Stanley'
63+
}
64+
];
65+
}
66+
5267
public dimensions: IPivotDimension[] = [
5368
{
5469
memberName: 'Country',
@@ -91,29 +106,8 @@ export class PivotGridSampleComponent {
91106
this.dimensions[0]
92107
],
93108
rows: [
94-
{
95-
memberName: 'AllProduct',
96-
memberFunction: () => 'All Products',
97-
enabled: true,
98-
childLevel: {
99-
memberName: 'ProductCategory',
100-
enabled: true
101-
}
102-
},
103-
new IgxPivotDateDimension(
104-
{
105-
memberName: 'Date',
106-
enabled: true
107-
},
108-
{
109-
months: false,
110-
total: true
111-
}
112-
),
113-
{
114-
memberName: 'SellerName',
115-
enabled: true
116-
},
109+
this.dimensions[1],
110+
this.dimensions[2]
117111
],
118112
values: [
119113
{

0 commit comments

Comments
 (0)