Skip to content

Commit cf7d780

Browse files
MKirovaMKirova
authored andcommitted
Remove originalData prop since it is no longer needed with the inclusion of pipes.
1 parent 762911e commit cf7d780

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="sample-column">
2-
<igx-pivot-grid #grid1 [data]="origData" [originalData]="origData" [pivotConfiguration]="pivotConfigHierarchy">
2+
<igx-pivot-grid #grid1 [data]="origData" [pivotConfiguration]="pivotConfigHierarchy">
33
</igx-pivot-grid>
44
</div>

0 commit comments

Comments
 (0)