@@ -85,7 +85,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
8585 private _data ;
8686 private _filteredData ;
8787 private p_id = `igx-pivot-grid-${ NEXT_ID ++ } ` ;
88- private _origData = [ ] ;
8988
9089 /**
9190 * @hidden
@@ -150,29 +149,6 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
150149 public get data ( ) : any [ ] | null {
151150 return this . _data ;
152151 }
153-
154- /**
155- * Returns an array of data set to the component.
156- * ```typescript
157- * let processedData = this.grid.processedData;
158- * ```
159- */
160- public get originalData ( ) : any [ ] | null {
161- return this . _origData ;
162- }
163-
164-
165- /**
166- * An @Input property that lets you fill the `IgxPivotGridComponent` with an array of data.
167- * ```html
168- * <igx-pivot-grid [processedData]="Data"></igx-pivot-grid>
169- * ```
170- */
171- @Input ( )
172- public set originalData ( value : any [ ] | null ) {
173- this . _origData = value || [ ] ;
174- }
175-
176152 /**
177153 * Sets an array of objects containing the filtered data.
178154 * ```typescript
@@ -267,7 +243,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
267243
268244 protected getFieldsHierarchy ( data ) {
269245 const hierarchy = new Map < string , any > ( ) ;
270- for ( const rec of this . originalData ) {
246+ for ( const rec of data ) {
271247 const vals = this . extractValuesFromDimension ( this . pivotConfiguration . columns , rec ) ;
272248 for ( const val of vals ) {
273249 if ( hierarchy . get ( val . value ) != null && val . children ) {
0 commit comments