Skip to content

Commit 97ee636

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Apply review comments.
1 parent b2fa019 commit 97ee636

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

projects/igniteui-angular/src/lib/grids/common/events.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ export interface IPinRowEventArgs extends IBaseEventArgs {
126126
/** The row component instance, that was pinned/unpinned.
127127
* May be undefined if row does not exist in the current visible data.
128128
*/
129-
row?: IgxRowDirective<IgxGridBaseDirective & GridType>;
129+
readonly row?: IgxRowDirective<IgxGridBaseDirective & GridType>;
130130
/** The ID of the row, that was pinned/unpinned.
131131
* ID is either the primaryKey value or the data record instance.
132132
*/
133-
rowID: any;
133+
readonly rowID: any;
134134
/** The index at which to pin the row in the pinned rows collection. */
135135
insertAtIndex?: number;
136136
/** Whether or noy the row is pinned or unpinned. */
137-
isPinned: boolean;
137+
readonly isPinned: boolean;
138138
}

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2464,8 +2464,11 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
24642464
/**
24652465
* @hidden
24662466
*/
2467-
public pinnedRecords = [];
2467+
public get pinnedRecords() {
2468+
return this._pinnedRecords;
2469+
}
24682470

2471+
protected _pinnedRecords = [];
24692472

24702473
/**
24712474
* @hidden
@@ -3289,6 +3292,17 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
32893292
return this._pinnedVisible;
32903293
}
32913294

3295+
/**
3296+
* Gets an array of the pinned `IgxRowComponent`s.
3297+
* @example
3298+
* ```typescript
3299+
* const pinnedRow = this.grid.pinnedRows;
3300+
* ```
3301+
*/
3302+
get pinnedRows(): IgxGridRowComponent[] {
3303+
return this.rowList.filter(x => x.pinned);
3304+
}
3305+
32923306
/**
32933307
* Gets an array of unpinned `IgxColumnComponent`s.
32943308
* @example

projects/igniteui-angular/src/lib/grids/grid/grid.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
class="igx-grid__scroll-on-drag-pinned" [style.left.px]="pinnedWidth"></span>
111111
<ng-template #pinnedRecordsTemplate>
112112
<ng-container *ngFor="let rowData of pinnedRecords
113-
| gridTransaction:id:pipeTrigger
114113
| visibleColumns:hasVisibleColumns
115114
| gridFiltering:filteringExpressionsTree:filterStrategy:advancedFilteringExpressionsTree:id:pipeTrigger:filteringPipeTrigger
116115
| gridSort:sortingExpressions:sortStrategy:id:pipeTrigger

0 commit comments

Comments
 (0)