File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ export interface IPinRowEventArgs extends IBaseEventArgs {
126
126
/** The row component instance, that was pinned/unpinned.
127
127
* May be undefined if row does not exist in the current visible data.
128
128
*/
129
- row ?: IgxRowDirective < IgxGridBaseDirective & GridType > ;
129
+ readonly row ?: IgxRowDirective < IgxGridBaseDirective & GridType > ;
130
130
/** The ID of the row, that was pinned/unpinned.
131
131
* ID is either the primaryKey value or the data record instance.
132
132
*/
133
- rowID : any ;
133
+ readonly rowID : any ;
134
134
/** The index at which to pin the row in the pinned rows collection. */
135
135
insertAtIndex ?: number ;
136
136
/** Whether or noy the row is pinned or unpinned. */
137
- isPinned : boolean ;
137
+ readonly isPinned : boolean ;
138
138
}
Original file line number Diff line number Diff line change @@ -2464,8 +2464,11 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
2464
2464
/**
2465
2465
* @hidden
2466
2466
*/
2467
- public pinnedRecords = [ ] ;
2467
+ public get pinnedRecords ( ) {
2468
+ return this . _pinnedRecords ;
2469
+ }
2468
2470
2471
+ protected _pinnedRecords = [ ] ;
2469
2472
2470
2473
/**
2471
2474
* @hidden
@@ -3289,6 +3292,17 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
3289
3292
return this . _pinnedVisible ;
3290
3293
}
3291
3294
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
+
3292
3306
/**
3293
3307
* Gets an array of unpinned `IgxColumnComponent`s.
3294
3308
* @example
Original file line number Diff line number Diff line change 110
110
class ="igx-grid__scroll-on-drag-pinned " [style.left.px] ="pinnedWidth "> </ span >
111
111
< ng-template #pinnedRecordsTemplate >
112
112
< ng-container *ngFor ="let rowData of pinnedRecords
113
- | gridTransaction:id:pipeTrigger
114
113
| visibleColumns:hasVisibleColumns
115
114
| gridFiltering:filteringExpressionsTree:filterStrategy:advancedFilteringExpressionsTree:id:pipeTrigger:filteringPipeTrigger
116
115
| gridSort:sortingExpressions:sortStrategy:id:pipeTrigger
You can’t perform that action at this time.
0 commit comments