File tree Expand file tree Collapse file tree 1 file changed +18
-24
lines changed Expand file tree Collapse file tree 1 file changed +18
-24
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ import {
8
8
IgxPivotDateDimension ,
9
9
IPivotDimension ,
10
10
IDimensionsChange ,
11
- DisplayDensity
11
+ DisplayDensity ,
12
+ FilteringExpressionsTree ,
13
+ FilteringLogic ,
14
+ IgxStringFilteringOperand
12
15
} from 'igniteui-angular' ;
13
16
import { HIERARCHICAL_SAMPLE_DATA } from '../shared/sample-data' ;
14
17
@@ -49,6 +52,18 @@ export class PivotGridSampleComponent {
49
52
public cosy : DisplayDensity = DisplayDensity . cosy ;
50
53
public compact : DisplayDensity = DisplayDensity . compact ;
51
54
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
+
52
67
public dimensions : IPivotDimension [ ] = [
53
68
{
54
69
memberName : 'Country' ,
@@ -91,29 +106,8 @@ export class PivotGridSampleComponent {
91
106
this . dimensions [ 0 ]
92
107
] ,
93
108
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 ]
117
111
] ,
118
112
values : [
119
113
{
You can’t perform that action at this time.
0 commit comments